/**
  * {@inheritdoc}
  */
 protected function getQueryBuilder()
 {
     $queryBuilder = parent::getQueryBuilder();
     $queryBuilder->addSelect('translation')->leftJoin($this->getAlias() . '.translations', 'translation');
     return $queryBuilder;
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 protected function getQueryBuilder()
 {
     return parent::getQueryBuilder()->leftJoin('o.items', 'item')->addSelect('item');
 }
 protected function getQueryBuilder()
 {
     $queryBuilder = parent::getQueryBuilder();
     return $queryBuilder->join($this->getAlias() . '.orderItem', 'i')->join('i.order', 'O')->andWhere($queryBuilder->expr()->isNotNull('O.completedAt'));
 }
示例#4
0
 /**
  * {@inheritdoc}
  */
 protected function getQueryBuilder()
 {
     return parent::getQueryBuilder()->select($this->getAlias() . ', option, variant')->leftJoin($this->getAlias() . '.options', 'option')->leftJoin($this->getAlias() . '.variants', 'variant');
 }
示例#5
0
 /**
  * {@inheritdoc}
  */
 protected function getCollectionQueryBuilder()
 {
     return parent::getQueryBuilder()->select('taxonomy, root, taxons')->leftJoin('taxonomy.root', 'root')->leftJoin('root.children', 'taxons');
 }