Your IP : 216.73.217.79


Current Path : /var/www/v3.cesa.co.za/src/ContentBundle/Repository/
Upload File :
Current File : /var/www/v3.cesa.co.za/src/ContentBundle/Repository/FormItemTypeRepository.php

<?php

namespace App\ContentBundle\Repository;

use App\ContentBundle\Entity\FormItemType;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
 * @extends ServiceEntityRepository<FormItemType>
 *
 * @method FormItemType|null find($id, $lockMode = null, $lockVersion = null)
 * @method FormItemType|null findOneBy(array $criteria, array $orderBy = null)
 * @method FormItemType[]    findAll()
 * @method FormItemType[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
 */
class FormItemTypeRepository extends ServiceEntityRepository {

    public function __construct(ManagerRegistry $registry) {
        parent::__construct($registry, FormItemType::class);
    }

    public function findAll() {
        $qb = $this->createQueryBuilder('fit')
                ->addOrderBy('fit.type_name')
        ;

        return $qb->getQuery()->execute();
    }
}