Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
MediaRepository
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Repository;
4
5use App\Entity\Media;
6use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
7use Doctrine\Persistence\ManagerRegistry;
8
9/**
10 * @extends ServiceEntityRepository<Media>
11 *
12 * @method Media|null find($id, $lockMode = null, $lockVersion = null)
13 * @method Media|null findOneBy(array<string, mixed> $criteria, array<string, mixed> $orderBy = null)
14 * @method Media[]    findAll()
15 * @method Media[]    findBy(array<string, mixed> $criteria, array<string, mixed> $orderBy = null, $limit = null, $offset = null)
16 */
17class MediaRepository extends ServiceEntityRepository
18{
19    public function __construct(ManagerRegistry $registry)
20    {
21        parent::__construct($registry, Media::class);
22    }
23
24    //    /**
25    //     * @return Media[] Returns an array of Media objects
26    //     */
27    //    public function findByExampleField($value): array
28    //    {
29    //        return $this->createQueryBuilder('m')
30    //            ->andWhere('m.exampleField = :val')
31    //            ->setParameter('val', $value)
32    //            ->orderBy('m.id', 'ASC')
33    //            ->setMaxResults(10)
34    //            ->getQuery()
35    //            ->getResult()
36    //        ;
37    //    }
38
39    //    public function findOneBySomeField($value): ?Media
40    //    {
41    //        return $this->createQueryBuilder('m')
42    //            ->andWhere('m.exampleField = :val')
43    //            ->setParameter('val', $value)
44    //            ->getQuery()
45    //            ->getOneOrNullResult()
46    //        ;
47    //    }
48}