for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Repository;
use App\Entity\Library;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* Repository class for managing Library entities.
*
* @extends ServiceEntityRepository<Library>
*/
class LibraryRepository extends ServiceEntityRepository
{
* Constructor to bind this repository to the Library entity.
public function __construct(ManagerRegistry $registry)
parent::__construct($registry, Library::class);
}
// /**
// * @return Library[] Returns an array of Library objects
// */
// public function findByExampleField($value): array
// {
// return $this->createQueryBuilder('l')
// ->andWhere('l.exampleField = :val')
// ->setParameter('val', $value)
// ->orderBy('l.id', 'ASC')
// ->setMaxResults(10)
// ->getQuery()
// ->getResult()
// ;
// }
// public function findOneBySomeField($value): ?Library
// ->getOneOrNullResult()