* @method MerDM|null find($id, $lockMode = null, $lockVersion = null) * @method MerDM|null findOneBy(array $criteria, array $orderBy = null) * @method MerDM[] findAll() * @method MerDM[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class MerDMRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, MerDM::class); } public function add(MerDM $entity, bool $flush = false): void { $this->getEntityManager()->persist($entity); if ($flush) { $this->getEntityManager()->flush(); } } public function remove(MerDM $entity, bool $flush = false): void { $this->getEntityManager()->remove($entity); if ($flush) { $this->getEntityManager()->flush(); } } // /** // * @return MerDM[] Returns an array of MerDM objects // */ // public function findByExampleField($value): array // { // return $this->createQueryBuilder('m') // ->andWhere('m.exampleField = :val') // ->setParameter('val', $value) // ->orderBy('m.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField($value): ?MerDM // { // return $this->createQueryBuilder('m') // ->andWhere('m.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } }