for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gbere\SimpleAuth\Repository;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
use Gbere\SimpleAuth\Entity\Role;
/**
* @method Role|null find($id, $lockMode = null, $lockVersion = null)
* @method Role|null findOneBy(array $criteria, array $orderBy = null)
* @method Role[] findAll()
* @method Role[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class RoleRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
parent::__construct($registry, Role::class);
}
// /**
// * @return Role[] Returns an array of Role objects
// */
/*
public function findByExampleField($value)
return $this->createQueryBuilder('r')
->andWhere('r.exampleField = :val')
->setParameter('val', $value)
->orderBy('r.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
public function findOneBySomeField($value): ?Role
->getOneOrNullResult()