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