/** * Set the query builder. * * @param Builder $builder */ public function setBuilder(Builder $builder) { $this->_builder = $builder; $this->_type = $builder->type; $this->_builder->setQuery($this); }