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