public function build(QueryBuilderInterface $queryBuilder) { if ($this->isForeign) { $queryBuilder->join($this->joinTable, $this->joinRule); } else { $queryBuilder->from($this->table); } $queryBuilder->addFilterEqual("{$this->table}.id", $this->id); }
public function build(QueryBuilderInterface $queryBuilder) { if ($this->isForeign) { $queryBuilder->join($this->joinTable, $this->joinRule); } else { $queryBuilder->from($this->table); } $this->callBuildMethod($queryBuilder); }
public function build(QueryBuilderInterface $queryBuilder) { if (!$this->isForeign) { $queryBuilder->from($this->table); } }