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