Ejemplo n.º 1
0
 /**
  * @param \Kdyby\Persistence\Query|\Kdyby\Doctrine\QueryObject $queryObject
  * @param int $hydrationMode
  * @throws QueryException
  * @return array|\Kdyby\Doctrine\ResultSet
  */
 public function fetch(Persistence\Query $queryObject, $hydrationMode = AbstractQuery::HYDRATE_OBJECT)
 {
     try {
         return $queryObject->fetch($this, $hydrationMode);
     } catch (\Exception $e) {
         throw $this->handleQueryException($e, $queryObject);
     }
 }
 /**
  * @param \Kdyby\Persistence\Query|\Kdyby\Doctrine\QueryObject $queryObject
  * @throws QueryException
  * @return array|\Kdyby\Doctrine\ResultSet
  */
 public function fetch(Persistence\Query $queryObject)
 {
     try {
         return $queryObject->fetch($this);
     } catch (\Exception $e) {
         throw $this->handleQueryException($e, $queryObject);
     }
 }