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); }
public function fetch(IQueryable $queryable) { $select = $queryable->createQuery(Client::QUERY_SELECT); $this->doPrepareQuery($select); return new ResultSet($select, $queryable, $this); }