projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06522ff
)
DataObjects/Events.php
author
KH Lau
<khlau@roojs.com>
Mon, 30 Oct 2017 03:18:11 +0000
(11:18 +0800)
committer
KH Lau
<khlau@roojs.com>
Mon, 30 Oct 2017 03:18:11 +0000
(11:18 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
9960ed5
..
8a4ccc7
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-224,7
+224,6
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
}
if ($obj && method_exists($obj,'relatedWhere')) {
$ar = $obj->relatedWhere();
-
$tn = $this->tableName();
$w = array();
@@
-243,7
+242,12
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
}
$this->whereAdd(implode(' OR ' , $w));
}
-
+ if ($obj && method_exists($obj,'relatedEventsWhere')) {
+ $a = $obj->relatedEventsWhere($q,$roo);
+ if($a){
+ $this->whereAdd($a);
+ }
+ }