DataObjects/Events.php
authorKH Lau <khlau@roojs.com>
Fri, 27 Oct 2017 05:05:40 +0000 (13:05 +0800)
committerKH Lau <khlau@roojs.com>
Fri, 27 Oct 2017 05:05:40 +0000 (13:05 +0800)
DataObjects/Events.php

index 2793761..f0bdb2b 100644 (file)
@@ -241,7 +241,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);
+                }
+            }