Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Repository;
- use App\Entity\Role;
- use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
- use Symfony\Bridge\Doctrine\RegistryInterface;
- /**
- * @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(RegistryInterface $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
- {
- return $this->createQueryBuilder('r')
- ->andWhere('r.exampleField = :val')
- ->setParameter('val', $value)
- ->getQuery()
- ->getOneOrNullResult()
- ;
- }
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement