* * @method Domain|null find($id, $lockMode = null, $lockVersion = null) * @method Domain|null findOneBy(array $criteria, array $orderBy = null) * @method Domain[] findAll() * @method Domain[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class DomainRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Domain::class); } // /** // * @return Domain[] Returns an array of Domain objects // */ // public function findByExampleField($value): array // { // return $this->createQueryBuilder('d') // ->andWhere('d.exampleField = :val') // ->setParameter('val', $value) // ->orderBy('d.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField($value): ?Domain // { // return $this->createQueryBuilder('d') // ->andWhere('d.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } }