Pman/Roo.php
authorAlan Knowles <alan@roojs.com>
Wed, 22 Mar 2017 09:01:57 +0000 (17:01 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 22 Mar 2017 09:01:57 +0000 (17:01 +0800)
Pman/Roo.php

index b9f1904..06ad96a 100644 (file)
@@ -1482,8 +1482,14 @@ class Pman_Roo extends Pman
                     if (isset($this->colsJname[$key])) {
                         
                         if (isset($this->cols[$key])) {
-                            $tbl = DB_DataObject::factory(array_shift(explode('.', $this->cols[$key]));
-                            
+                            $tc = explode('.',$this->cols[$key]);
+                            $tbl = DB_DataObject::factory($tc[0]);
+                            $set = array();
+                            $set[$tc[1]] = $val;
+                            $tbl->setFrom($set);
+                            if (!isset($tbl->{$tc[1]})) {
+                                continue;
+                            }
                         }
                         
                         print_r($this);