/
var
/
www
/
html
/
restaurants
/
src
/
Repository
/
Upload File
HOME
<?php namespace App\Repository; use App\Document\User; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Symfony\Bridge\Doctrine\RegistryInterface; /** * @method Users|null find($id, $lockMode = null, $lockVersion = null) * @method Users|null findOneBy(array $criteria, array $orderBy = null) * @method Users[] findAll() * @method Users[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) */ class UsersRepository extends ServiceEntityRepository { public function __construct(RegistryInterface $registry) { parent::__construct($registry, Users::class); } // /** // * @return Users[] Returns an array of Users objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('u') ->andWhere('u.exampleField = :val') ->setParameter('val', $value) ->orderBy('u.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?Users { return $this->createQueryBuilder('u') ->andWhere('u.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ }