/** * {@inheritdoc} */ protected function getQueryBuilder() { $queryBuilder = parent::getQueryBuilder(); $queryBuilder->addSelect('translation')->leftJoin($this->getAlias() . '.translations', 'translation'); return $queryBuilder; }
/** * {@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')); }
/** * {@inheritdoc} */ protected function getQueryBuilder() { return parent::getQueryBuilder()->select($this->getAlias() . ', option, variant')->leftJoin($this->getAlias() . '.options', 'option')->leftJoin($this->getAlias() . '.variants', 'variant'); }
/** * {@inheritdoc} */ protected function getCollectionQueryBuilder() { return parent::getQueryBuilder()->select('taxonomy, root, taxons')->leftJoin('taxonomy.root', 'root')->leftJoin('root.children', 'taxons'); }