| Current Path : /var/www/v3.cesa.co.za/src/ContentBundle/Repository/ |
| Current File : /var/www/v3.cesa.co.za/src/ContentBundle/Repository/FormItemListRepository.php |
<?php
namespace App\ContentBundle\Repository;
use App\ContentBundle\Entity\FormItemList;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<FormItemList>
*
* @method FormItemList|null find($id, $lockMode = null, $lockVersion = null)
* @method FormItemList|null findOneBy(array $criteria, array $orderBy = null)
* @method FormItemList[] findAll()
* @method FormItemList[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class FormItemListRepository extends ServiceEntityRepository {
public function __construct(ManagerRegistry $registry) {
parent::__construct($registry, FormItemList::class);
}
public function findAll() {
$qb = $this->createQueryBuilder('fil')
->addOrderBy('fil.order_by')
;
return $qb->getQuery()->execute();
}
}