* * @method File|null find($id, $lockMode = null, $lockVersion = null) * @method File|null findOneBy(array $criteria, array $orderBy = null) * @method File[] findAll() * @method File[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class FileRepository extends ServiceEntityRepository { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, File::class); } // /** // * @return File[] Returns an array of File objects // */ // public function findByExampleField($value): array // { // return $this->createQueryBuilder('f') // ->andWhere('f.exampleField = :val') // ->setParameter('val', $value) // ->orderBy('f.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField($value): ?File // { // return $this->createQueryBuilder('f') // ->andWhere('f.exampleField = :val') // ->setParameter('val', $value) // ->getQuery() // ->getOneOrNullResult() // ; // } }