Пример #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);
 }
Пример #2
0
 /**
  * @param IQuery
  * @return mixed|ResultSet
  */
 public function fetch(IQuery $query)
 {
     return $query->fetch($this);
 }