| Current Path : /var/www/v3.cesa.co.za/src/ContentBundle/Repository/ |
| Current File : /var/www/v3.cesa.co.za/src/ContentBundle/Repository/FormItemFormRepository.php |
<?php
namespace App\ContentBundle\Repository;
use App\ContentBundle\Entity\FormItemForm;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<FormItemForm>
*
* @method FormItemForm|null find($id, $lockMode = null, $lockVersion = null)
* @method FormItemForm|null findOneBy(array $criteria, array $orderBy = null)
* @method FormItemForm[] findAll()
* @method FormItemForm[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class FormItemFormRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, FormItemForm::class);
}
// /**
// * @return FormItemForm[] Returns an array of FormItemForm 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): ?FormItemForm
// {
// return $this->createQueryBuilder('f')
// ->andWhere('f.exampleField = :val')
// ->setParameter('val', $value)
// ->getQuery()
// ->getOneOrNullResult()
// ;
// }
}