|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
-
- namespace App\Repository;
-
- use App\Entity\Subthematic;
- use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
- use Doctrine\Persistence\ManagerRegistry;
-
- /**
- * @method Subthematic|null find($id, $lockMode = null, $lockVersion = null)
- * @method Subthematic|null findOneBy(array $criteria, array $orderBy = null)
- * @method Subthematic[] findAll()
- * @method Subthematic[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
- */
- class SubthematicRepository extends ServiceEntityRepository
- {
- public function __construct(ManagerRegistry $registry)
- {
- parent::__construct($registry, Subthematic::class);
- }
-
- // /**
- // * @return Subthematic[] Returns an array of Subthematic objects
- // */
- /*
- public function findByExampleField($value)
- {
- return $this->createQueryBuilder('t')
- ->andWhere('t.exampleField = :val')
- ->setParameter('val', $value)
- ->orderBy('t.id', 'ASC')
- ->setMaxResults(10)
- ->getQuery()
- ->getResult()
- ;
- }
- */
-
- /*
- public function findOneBySomeField($value): ?Subthematic
- {
- return $this->createQueryBuilder('t')
- ->andWhere('t.exampleField = :val')
- ->setParameter('val', $value)
- ->getQuery()
- ->getOneOrNullResult()
- ;
- }
- */
- }
|