44 lines
1.3 KiB
PHP
44 lines
1.3 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace App\Repository;
|
||
|
|
||
|
use App\Entity\CommunityResource;
|
||
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||
|
use Doctrine\Persistence\ManagerRegistry;
|
||
|
|
||
|
/**
|
||
|
* @extends ServiceEntityRepository<CommunityResource>
|
||
|
*/
|
||
|
class CommunityResourceRepository extends ServiceEntityRepository
|
||
|
{
|
||
|
public function __construct(ManagerRegistry $registry)
|
||
|
{
|
||
|
parent::__construct($registry, CommunityResource::class);
|
||
|
}
|
||
|
|
||
|
// /**
|
||
|
// * @return CommunityResource[] Returns an array of CommunityResource objects
|
||
|
// */
|
||
|
// public function findByExampleField($value): array
|
||
|
// {
|
||
|
// return $this->createQueryBuilder('c')
|
||
|
// ->andWhere('c.exampleField = :val')
|
||
|
// ->setParameter('val', $value)
|
||
|
// ->orderBy('c.id', 'ASC')
|
||
|
// ->setMaxResults(10)
|
||
|
// ->getQuery()
|
||
|
// ->getResult()
|
||
|
// ;
|
||
|
// }
|
||
|
|
||
|
// public function findOneBySomeField($value): ?CommunityResource
|
||
|
// {
|
||
|
// return $this->createQueryBuilder('c')
|
||
|
// ->andWhere('c.exampleField = :val')
|
||
|
// ->setParameter('val', $value)
|
||
|
// ->getQuery()
|
||
|
// ->getOneOrNullResult()
|
||
|
// ;
|
||
|
// }
|
||
|
}
|