join() public method

Queries will join tables, inserts, updates and deletes will be applied on both tables
public join ( $foreign_table, $master_field = null, $join_kind = null, $_foreign_alias = null, $relation = null )
Ejemplo n.º 1
0
 public function join($foreign_table, $master_field = null, $join_kind = null, $_foreign_alias = null)
 {
     if (strpos($master_field, '.') === false) {
         $master_field = $this->joinAlias . '.' . $master_field;
     }
     return $this->model->join($foreign_table, $master_field, $join_kind, $_foreign_alias, $this->joinAlias);
 }
Ejemplo n.º 2
0
 public function join($foreign_table, $master_field = null, $join_kind = null, $_foreign_alias = null)
 {
     return $this->owner->join($foreign_table, $master_field, $join_kind, $_foreign_alias, $this);
 }