|
- <?php
-
- namespace Lc\ShopBundle\Repository;
-
- use App\Entity\Page;
- use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
- use Doctrine\Common\Persistence\ManagerRegistry;
- use Lc\ShopBundle\Repository\BaseRepository;
-
- /**
- * @method Page|null find($id, $lockMode = null, $lockVersion = null)
- * @method Page|null findOneBy(array $criteria, array $orderBy = null)
- * @method Page[] findAll()
- * @method Page[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
- */
- class PageRepository extends BaseRepository
- {
- public function __construct(ManagerRegistry $registry)
- {
- parent::__construct($registry, Page::class);
- }
-
- // /**
- // * @return Page[] Returns an array of Page objects
- // */
- /*
- public function findByExampleField($value)
- {
- return $this->createQueryBuilder('p')
- ->andWhere('p.exampleField = :val')
- ->setParameter('val', $value)
- ->orderBy('p.id', 'ASC')
- ->setMaxResults(10)
- ->getQuery()
- ->getResult()
- ;
- }
- */
-
- /*
- public function findOneBySomeField($value): ?Page
- {
- return $this->createQueryBuilder('p')
- ->andWhere('p.exampleField = :val')
- ->setParameter('val', $value)
- ->getQuery()
- ->getOneOrNullResult()
- ;
- }
- */
- }
|