예제 #1
0
 /**
  * Constructor. Stores various parameters that are otherwise unavailable
  * because Doctrine\ORM\Query\SqlWalker keeps everything private without
  * accessors.
  *
  * @param Doctrine\ORM\Query $query
  * @param Doctrine\ORM\Query\ParserResult $parserResult
  * @param array $queryComponents
  */
 public function __construct($query, $parserResult, array $queryComponents)
 {
     $this->platform = $query->getEntityManager()->getConnection()->getDatabasePlatform();
     $this->rsm = $parserResult->getResultSetMapping();
     $this->queryComponents = $queryComponents;
     parent::__construct($query, $parserResult, $queryComponents);
 }
예제 #2
0
 /**
  * {@inheritDoc}
  */
 public function __construct($query, $parserResult, array $queryComponents)
 {
     parent::__construct($query, $parserResult, $queryComponents);
     $this->conn = $this->getConnection();
     $this->platform = $this->conn->getDatabasePlatform();
     $this->listener = $this->getSoftDeleteableListener();
     $this->extractComponents($queryComponents);
 }
 /**
  * Constructor. Stores various parameters that are otherwise unavailable
  * because Doctrine\ORM\Query\SqlWalker keeps everything private without
  * accessors.
  *
  * @param Doctrine\ORM\Query $query
  * @param Doctrine\ORM\Query\ParserResult $parserResult
  * @param array $queryComponents
  */
 public function __construct($query, $parserResult, array $queryComponents)
 {
     $this->queryComponents = $queryComponents;
     // Reset limit and offset
     $this->firstResult = $query->getFirstResult();
     $this->maxResults = $query->getMaxResults();
     parent::__construct($query, $parserResult, $queryComponents);
 }
예제 #4
0
 /**
  * {@inheritDoc}
  */
 public function __construct($query, $parserResult, array $queryComponents)
 {
     if ($query->hasHint(self::ORO_ACL_QUERY_COMPONENTS)) {
         $hintQueryComponents = $query->getHint(self::ORO_ACL_QUERY_COMPONENTS);
         if (!empty($hintQueryComponents)) {
             $queryComponents = array_merge($queryComponents, $hintQueryComponents);
         }
     }
     parent::__construct($query, $parserResult, $queryComponents);
 }
 /**
  * Constructor. Stores various parameters that are otherwise unavailable
  * because Doctrine\ORM\Query\SqlWalker keeps everything private without
  * accessors.
  *
  * @param Doctrine\ORM\Query $query
  * @param Doctrine\ORM\Query\ParserResult $parserResult
  * @param array $queryComponents
  */
 public function __construct($query, $parserResult, array $queryComponents)
 {
     $this->platform = $query->getEntityManager()->getConnection()->getDatabasePlatform();
     $this->rsm = $parserResult->getResultSetMapping();
     $this->queryComponents = $queryComponents;
     // Reset limit and offset
     $this->firstResult = $query->getFirstResult();
     $this->maxResults = $query->getMaxResults();
     $query->setFirstResult(null)->setMaxResults(null);
     parent::__construct($query, $parserResult, $queryComponents);
 }
 /**
  * {@inheritDoc}
  */
 public function __construct($query, $parserResult, array $queryComponents)
 {
     $this->rsm = $parserResult->getResultSetMapping();
     parent::__construct($query, $parserResult, $queryComponents);
 }