Example #1
0
 protected function modify_join_result($join_result, $name)
 {
     if (!is_null($this->_col_name) and is_subclass_of($join_result[$name]['model'], '\\Orm\\Model_Soft')) {
         $table = $join_result[$name]['table'][1];
         $join_result[$name]['join_on'][] = array("{$table}.{$this->_col_name}", 'IS', \DB::expr('NULL'));
     }
     return parent::modify_join_result($join_result, $name);
 }