Files
myep-team/src/Repository/FeeRepository.php
T

36 lines
944 B
PHP

<?php
namespace App\Repository;
use App\Entity\Fee;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<Fee>
*
* @method Fee|null find($id, $lockMode = null, $lockVersion = null)
* @method Fee|null findOneBy(array $criteria, array $orderBy = null)
* @method Fee[] findAll()
* @method Fee[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class FeeRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Fee::class);
}
public function getList(): array
{
$qb = $this->createQueryBuilder('fee');
return $qb
->where($qb->expr()->isNull('fee.deletedAt'))
->orderBy('fee.name', 'ASC')
->getQuery()
->getResult()
;
}
}