protected function buildDataTablesFindAll(DataTablesWrapperInterface $dtWrapper) {

        $prefix = $dtWrapper->getMapping()->getPrefix();

        $qb = $this->createQueryBuilder($prefix)
            ->setFirstResult($dtWrapper->getRequest()->getStart());
        if (0 < $dtWrapper->getRequest()->getLength()) {
            $qb->setMaxResults($dtWrapper->getRequest()->getLength());
        }

        DataTablesRepositoryHelper::appendWhere($qb, $dtWrapper);
        DataTablesRepositoryHelper::appendOrder($qb, $dtWrapper);

        return $qb;
    }
protected function buildDataTablesFindAll(DataTablesWrapperInterface $dtWrapper) {

        $prefix = $dtWrapper->getMapping()->getPrefix();

        $qb = $this->createQueryBuilder($prefix)
            ->setFirstResult($dtWrapper->getRequest()->getStart());
        if (0 < $dtWrapper->getRequest()->getLength()) {
            $qb->setMaxResults($dtWrapper->getRequest()->getLength());
        }

        DataTablesRepositoryHelper::appendWhere($qb, $dtWrapper);
        DataTablesRepositoryHelper::appendOrder($qb, $dtWrapper);

        return $qb;
    }
protected function buildDataTablesFindAll ( DataTablesWrapperInterface $ dtWrapper ) { $ prefix = $ dtWrapper -> getMapping ( ) -> getPrefix ( ) ; $ qb = $ this -> createQueryBuilder ( $ prefix ) -> setFirstResult ( $ dtWrapper -> getRequest ( ) -> getStart ( ) ) ; if ( 0 < $ dtWrapper -> getRequest ( ) -> getLength ( ) ) { $ qb -> setMaxResults ( $ dtWrapper -> getRequest ( ) -> getLength ( ) ) ; } DataTablesRepositoryHelper :: appendWhere ( $ qb , $ dtWrapper ) ; DataTablesRepositoryHelper :: appendOrder ( $ qb , $ dtWrapper ) ; return $ qb ; }
Build a query builder "Find all".

@param DataTablesWrapperInterface $dtWrapper The wrapper.
@return QueryBuilder Returns the query builder "Find all".
Build a query builder Find all .