/**
  * {@inheritdoc}
  */
 public function getRootNodesQueryBuilder($sortByField = null, $direction = 'asc')
 {
     /** @var QueryBuilder $qb */
     $qb = parent::getRootNodesQueryBuilder($sortByField, $direction);
     $qb->andWhere('node.deleted != true');
     return $qb;
 }
 /**
  * {@inheritdoc}
  */
 public function getRootNodesQueryBuilder($sortByField = null, $direction = 'asc')
 {
     $qb = parent::getRootNodesQueryBuilder($sortByField, $direction);
     $qb->andWhere($qb->expr()->not($qb->expr()->eq('node.id', ':hiddenCollection')))->setParameter('hiddenCollection', CollectionEntity::TEMPORARY_UPLOAD_COLLECTION_ID);
     return $qb;
 }
Beispiel #3
0
 /**
  * {@inheritDoc}
  */
 public function getRootNodesQueryBuilder($sortByField = NULL, $direction = 'asc')
 {
     $qb = parent::getRootNodesQueryBuilder($sortByField, $direction);
     if ($this->onlyEnabled) {
         $qb->andWhere($qb->expr()->eq('node.is_enabled', 1));
     }
     return $qb;
 }