src/Kunstmaan/FormBundle/AdminList/FormSubmissionAdminListConfigurator.php
public function adaptQueryBuilder(QueryBuilder $queryBuilder, array $params = array())
    {
        parent::adaptQueryBuilder($queryBuilder);
        $queryBuilder
                ->innerJoin('b.node', 'n', 'WITH', 'b.node = n.id')
                ->andWhere('n.id = :node')
                ->andWhere('b.lang = :lang')
                ->setParameter('node', $this->nodeTranslation->getNode()->getId())
                ->setParameter('lang', $this->nodeTranslation->getLang())
                ->addOrderBy('b.created', 'DESC');
    }
public function adaptQueryBuilder(QueryBuilder $queryBuilder, array $params = array())
    {
        parent::adaptQueryBuilder($queryBuilder);
        $queryBuilder
                ->innerJoin('b.node', 'n', 'WITH', 'b.node = n.id')
                ->andWhere('n.id = :node')
                ->andWhere('b.lang = :lang')
                ->setParameter('node', $this->nodeTranslation->getNode()->getId())
                ->setParameter('lang', $this->nodeTranslation->getLang())
                ->addOrderBy('b.created', 'DESC');
    }
public function adaptQueryBuilder ( QueryBuilder $ queryBuilder , array $ params = array ( ) ) { parent :: adaptQueryBuilder ( $ queryBuilder ) ; $ queryBuilder -> innerJoin ( 'b.node' , 'n' , 'WITH' , 'b.node = n.id' ) -> andWhere ( 'n.id = :node' ) -> andWhere ( 'b.lang = :lang' ) -> setParameter ( 'node' , $ this -> nodeTranslation -> getNode ( ) -> getId ( ) ) -> setParameter ( 'lang' , $ this -> nodeTranslation -> getLang ( ) ) -> addOrderBy ( 'b.created' , 'DESC' ) ; }
Make some modifications to the default created query builder

@param QueryBuilder $queryBuilder The query builder
@param array        $params       The parameters
Make some modifications to the default created query builder