private function execute() { if ($this->selectResult) { return; } if ($this->query instanceof IQueryModifier) { $this->query->modifyQuery($this->selectQuery); } $this->onBeforeExecute($this); $this->selectResult = $this->queryable->execute($this->selectQuery); $this->onExecute($this, $this->selectResult); }
/** * @param IQuery * @return mixed|ResultSet */ public function fetch(IQuery $query) { return $query->fetch($this); }