if (!$obj) {
$roo->jerr("ontable is invalid");
}
- /*
+
if (!method_exists($obj,'relatedWhere')) {
$roo->jerr( $q['_related_on_table'] . " Does not have method relatedWhere :" .
implode(',', get_class_methods($obj)));
}
$this->whereAdd(implode(' OR ' , $w));
- }*/
- if ($obj && method_exists($obj,'relatedEventsWhere')) {
- $a = $obj->relatedEventsWhere($q,$roo);
- if($a){
- $this->whereAdd($a);
- }
}
+
}
// since roo does not support autojoin yet..
if (!isset($q['_distinct'])) {