Example #1
0
 public function join(Searcher $s)
 {
     $st = $s->table();
     $rMap = array_flip($s->relationMap());
     $refKey = $rMap[$this->table];
     $this->conds[$st . ".{$refKey}={$this->table}.id"] = null;
     $this->conds += $s->conds;
     if (!in_array($st, $this->tables)) {
         $this->tables[] = $st;
     }
     return $this;
 }