projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75780ff
)
DataObjects/Office.php
author
edward
<edward@roojs.com>
Wed, 20 Jul 2016 07:03:58 +0000
(15:03 +0800)
committer
edward
<edward@roojs.com>
Wed, 20 Jul 2016 07:03:58 +0000
(15:03 +0800)
DataObjects/Office.php
patch
|
blob
|
history
diff --git
a/DataObjects/Office.php
b/DataObjects/Office.php
index
334649e
..
e6f0976
100644
(file)
--- a/
DataObjects/Office.php
+++ b/
DataObjects/Office.php
@@
-59,12
+59,15
@@
class Pman_Core_DataObjects_Office extends DB_DataObject
}
$p = DB_DAtaObject::Factory('Person');
- print_R($p);exit;
+
if (!is_a($dependants_array[0], get_class($p))) {
$roo->jerr("dep is not a person..");
return true;
}
+ print_R(count($dependants_array));exit;
+ print_R('run?>>>');exit;
+
$p->office_id = $this->id;
if ($p->count() > 1) {
return true; // default err..