projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7adcbc2
)
Pman/Roo.php
author
Alan Knowles
<alan@roojs.com>
Wed, 22 Mar 2017 09:01:57 +0000
(17:01 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 22 Mar 2017 09:01:57 +0000
(17:01 +0800)
Pman/Roo.php
patch
|
blob
|
history
diff --git
a/Pman/Roo.php
b/Pman/Roo.php
index
b9f1904
..
06ad96a
100644
(file)
--- a/
Pman/Roo.php
+++ b/
Pman/Roo.php
@@
-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);