mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge branch 'fix-missing-dependency' into 'master'
Fix repositories - add typing - add missing methods - remove obsolete phpdoc See merge request Chill-Projet/chill-bundles!60
This commit is contained in:
commit
e4d1b951a3
@ -32,7 +32,7 @@ use Symfony\Component\Serializer\Annotation\DiscriminatorMap;
|
|||||||
use Symfony\Component\Serializer\Annotation\Groups;
|
use Symfony\Component\Serializer\Annotation\Groups;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Entity(repositoryClass=ResourceRepository::class)
|
* @ORM\Entity
|
||||||
* @ORM\Table(name="chill_person_accompanying_period_resource")
|
* @ORM\Table(name="chill_person_accompanying_period_resource")
|
||||||
* @DiscriminatorMap(typeProperty="type", mapping={
|
* @DiscriminatorMap(typeProperty="type", mapping={
|
||||||
* "accompanying_period_resource"=Resource::class
|
* "accompanying_period_resource"=Resource::class
|
||||||
|
@ -27,31 +27,27 @@ use Doctrine\ORM\EntityManagerInterface;
|
|||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
use Doctrine\ORM\Query\ResultSetMappingBuilder;
|
use Doctrine\ORM\Query\ResultSetMappingBuilder;
|
||||||
|
|
||||||
/**
|
|
||||||
* Class ClosingMotiveRepository
|
|
||||||
* Entity repository for closing motives
|
|
||||||
*
|
|
||||||
* @package Chill\PersonBundle\Repository
|
|
||||||
*/
|
|
||||||
final class ClosingMotiveRepository
|
final class ClosingMotiveRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
|
||||||
|
private EntityManagerInterface $entityManager;
|
||||||
|
|
||||||
public function __construct(EntityManagerInterface $entityManager)
|
public function __construct(EntityManagerInterface $entityManager)
|
||||||
{
|
{
|
||||||
|
$this->entityManager = $entityManager;
|
||||||
$this->repository = $entityManager->getRepository(ClosingMotive::class);
|
$this->repository = $entityManager->getRepository(ClosingMotive::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param bool $onlyLeaf
|
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getActiveClosingMotive(bool $onlyLeaf = true)
|
public function getActiveClosingMotive(bool $onlyLeaf = true)
|
||||||
{
|
{
|
||||||
$rsm = new ResultSetMappingBuilder($this->repository->getEntityManager());
|
$rsm = new ResultSetMappingBuilder($this->entityManager);
|
||||||
$rsm->addRootEntityFromClassMetadata($this->repository->getClassName(), 'cm');
|
$rsm->addRootEntityFromClassMetadata($this->repository->getClassName(), 'cm');
|
||||||
|
|
||||||
$sql = "SELECT ".(string) $rsm."
|
$sql = "SELECT " . (string) $rsm . "
|
||||||
FROM chill_person_accompanying_period_closingmotive AS cm
|
FROM chill_person_accompanying_period_closingmotive AS cm
|
||||||
WHERE
|
WHERE
|
||||||
active IS TRUE ";
|
active IS TRUE ";
|
||||||
@ -65,8 +61,7 @@ final class ClosingMotiveRepository
|
|||||||
$sql .= " ORDER BY cm.ordering ASC";
|
$sql .= " ORDER BY cm.ordering ASC";
|
||||||
|
|
||||||
return $this
|
return $this
|
||||||
->repository
|
->entityManager
|
||||||
->getEntityManager()
|
|
||||||
->createNativeQuery($sql, $rsm)
|
->createNativeQuery($sql, $rsm)
|
||||||
->getResult();
|
->getResult();
|
||||||
}
|
}
|
||||||
|
@ -26,12 +26,6 @@ use Chill\PersonBundle\Entity\AccompanyingPeriod\Comment;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* @method Comment|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method Comment|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method Comment[] findAll()
|
|
||||||
* @method Comment[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
final class CommentRepository
|
final class CommentRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
@ -26,12 +26,6 @@ use Chill\PersonBundle\Entity\AccompanyingPeriod\Origin;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* @method Origin|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method Origin|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method Origin[] findAll()
|
|
||||||
* @method Origin[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
final class OriginRepository
|
final class OriginRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
@ -24,21 +24,19 @@ namespace Chill\PersonBundle\Repository\AccompanyingPeriod;
|
|||||||
|
|
||||||
use Chill\PersonBundle\Entity\AccompanyingPeriod\Resource;
|
use Chill\PersonBundle\Entity\AccompanyingPeriod\Resource;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
final class ResourceRepository
|
||||||
* @method Resource|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method Resource|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method Resource[] findAll()
|
|
||||||
* @method Resource[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
final class ResourceRepository extends ServiceEntityRepository
|
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
public function __construct(EntityManagerInterface $entityManager)
|
||||||
{
|
{
|
||||||
parent::__construct($registry, Resource::class);
|
$this->repository = $entityManager->getRepository(Resource::class);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function find($id, $lockMode = null, $lockVersion = null): ?Resource
|
||||||
|
{
|
||||||
|
return $this->repository->find($id, $lockMode, $lockVersion);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,12 +26,6 @@ use Chill\PersonBundle\Entity\AccompanyingPeriodParticipation;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* @method AccompanyingPeriodParticipation|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method AccompanyingPeriodParticipation|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method AccompanyingPeriodParticipation[] findAll()
|
|
||||||
* @method AccompanyingPeriodParticipation[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
final class AccompanyingPeriodParticipationRepository
|
final class AccompanyingPeriodParticipationRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
@ -26,12 +26,6 @@ use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* @method AccompanyingPeriod|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method AccompanyingPeriod|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method AccompanyingPeriod[] findAll()
|
|
||||||
* @method AccompanyingPeriod[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
final class AccompanyingPeriodRepository
|
final class AccompanyingPeriodRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
@ -6,12 +6,6 @@ use Chill\PersonBundle\Entity\Household\HouseholdMembers;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* @method HouseholdMembers|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method HouseholdMembers|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method HouseholdMembers[] findAll()
|
|
||||||
* @method HouseholdMembers[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
final class HouseholdMembersRepository
|
final class HouseholdMembersRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
@ -20,33 +14,4 @@ final class HouseholdMembersRepository
|
|||||||
{
|
{
|
||||||
$this->repository = $entityManager->getRepository(HouseholdMembers::class);
|
$this->repository = $entityManager->getRepository(HouseholdMembers::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return HouseholdMembers[] Returns an array of HouseholdMembers objects
|
|
||||||
// */
|
|
||||||
/*
|
|
||||||
public function findByExampleField($value)
|
|
||||||
{
|
|
||||||
return $this->createQueryBuilder('h')
|
|
||||||
->andWhere('h.exampleField = :val')
|
|
||||||
->setParameter('val', $value)
|
|
||||||
->orderBy('h.id', 'ASC')
|
|
||||||
->setMaxResults(10)
|
|
||||||
->getQuery()
|
|
||||||
->getResult()
|
|
||||||
;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
public function findOneBySomeField($value): ?HouseholdMembers
|
|
||||||
{
|
|
||||||
return $this->createQueryBuilder('h')
|
|
||||||
->andWhere('h.exampleField = :val')
|
|
||||||
->setParameter('val', $value)
|
|
||||||
->getQuery()
|
|
||||||
->getOneOrNullResult()
|
|
||||||
;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
@ -6,12 +6,6 @@ use Chill\PersonBundle\Entity\Household\Household;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* @method Household|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method Household|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method Household[] findAll()
|
|
||||||
* @method Household[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
final class HouseholdRepository
|
final class HouseholdRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
@ -20,33 +14,4 @@ final class HouseholdRepository
|
|||||||
{
|
{
|
||||||
$this->repository = $entityManager->getRepository(Household::class);
|
$this->repository = $entityManager->getRepository(Household::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Household[] Returns an array of Household objects
|
|
||||||
// */
|
|
||||||
/*
|
|
||||||
public function findByExampleField($value)
|
|
||||||
{
|
|
||||||
return $this->createQueryBuilder('h')
|
|
||||||
->andWhere('h.exampleField = :val')
|
|
||||||
->setParameter('val', $value)
|
|
||||||
->orderBy('h.id', 'ASC')
|
|
||||||
->setMaxResults(10)
|
|
||||||
->getQuery()
|
|
||||||
->getResult()
|
|
||||||
;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
public function findOneBySomeField($value): ?Household
|
|
||||||
{
|
|
||||||
return $this->createQueryBuilder('h')
|
|
||||||
->andWhere('h.exampleField = :val')
|
|
||||||
->setParameter('val', $value)
|
|
||||||
->getQuery()
|
|
||||||
->getOneOrNullResult()
|
|
||||||
;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
@ -6,12 +6,6 @@ use Chill\PersonBundle\Entity\PersonAltName;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* PersonAltNameRepository
|
|
||||||
*
|
|
||||||
* This class was generated by the Doctrine ORM. Add your own custom
|
|
||||||
* repository methods below.
|
|
||||||
*/
|
|
||||||
final class PersonAltNameRepository
|
final class PersonAltNameRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
@ -7,11 +7,6 @@ use Chill\PersonBundle\Entity\PersonNotDuplicate;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* Class PersonNotDuplicateRepository
|
|
||||||
*
|
|
||||||
* @package Chill\PersonBundle\Repository
|
|
||||||
*/
|
|
||||||
final class PersonNotDuplicateRepository
|
final class PersonNotDuplicateRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
@ -21,12 +16,7 @@ final class PersonNotDuplicateRepository
|
|||||||
$this->repository = $entityManager->getRepository(PersonNotDuplicate::class);
|
$this->repository = $entityManager->getRepository(PersonNotDuplicate::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function findNotDuplicatePerson(Person $person): array
|
||||||
* @param \Chill\PersonBundle\Entity\Person $person
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function findNotDuplicatePerson(Person $person)
|
|
||||||
{
|
{
|
||||||
$qb = $this->repository->createQueryBuilder('pnd');
|
$qb = $this->repository->createQueryBuilder('pnd');
|
||||||
$qb->select('pnd')
|
$qb->select('pnd')
|
||||||
@ -36,6 +26,7 @@ final class PersonNotDuplicateRepository
|
|||||||
$result = $qb->getQuery()->getResult();
|
$result = $qb->getQuery()->getResult();
|
||||||
|
|
||||||
$persons = [];
|
$persons = [];
|
||||||
|
|
||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
if ($row->getPerson1() === $person) {
|
if ($row->getPerson1() === $person) {
|
||||||
$persons[] = $row->getPerson2();
|
$persons[] = $row->getPerson2();
|
||||||
|
@ -32,17 +32,15 @@ final class PersonRepository
|
|||||||
$this->repository = $entityManager->getRepository(Person::class);
|
$this->repository = $entityManager->getRepository(Person::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function find($id, $lockMode = null, $lockVersion = null)
|
public function find($id, $lockMode = null, $lockVersion = null): ?Person
|
||||||
{
|
{
|
||||||
return $this->repository->find($id, $lockMode, $lockVersion);
|
return $this->repository->find($id, $lockMode, $lockVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $phonenumber
|
|
||||||
* @param $centers
|
* @param $centers
|
||||||
* @param $firstResult
|
* @param $firstResult
|
||||||
* @param $maxResults
|
* @param $maxResults
|
||||||
* @param array $only
|
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
@ -67,10 +65,7 @@ final class PersonRepository
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $phonenumber
|
|
||||||
* @param $centers
|
* @param $centers
|
||||||
* @param array $only
|
|
||||||
* @return int
|
|
||||||
* @throws \Doctrine\ORM\NoResultException
|
* @throws \Doctrine\ORM\NoResultException
|
||||||
* @throws \Doctrine\ORM\NonUniqueResultException
|
* @throws \Doctrine\ORM\NonUniqueResultException
|
||||||
*/
|
*/
|
||||||
@ -78,8 +73,7 @@ final class PersonRepository
|
|||||||
string $phonenumber,
|
string $phonenumber,
|
||||||
$centers,
|
$centers,
|
||||||
array $only = ['mobile', 'phone']
|
array $only = ['mobile', 'phone']
|
||||||
): int
|
): int {
|
||||||
{
|
|
||||||
$qb = $this->repository->createQueryBuilder('p');
|
$qb = $this->repository->createQueryBuilder('p');
|
||||||
$qb->select('COUNT(p)');
|
$qb->select('COUNT(p)');
|
||||||
|
|
||||||
@ -90,12 +84,9 @@ final class PersonRepository
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param QueryBuilder $qb
|
|
||||||
* @param string $phonenumber
|
|
||||||
* @param array $only
|
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
protected function addPhoneNumber(QueryBuilder $qb, string $phonenumber, array $only)
|
protected function addPhoneNumber(QueryBuilder $qb, string $phonenumber, array $only): void
|
||||||
{
|
{
|
||||||
if (count($only) === 0) {
|
if (count($only) === 0) {
|
||||||
throw new \Exception("No array field to search");
|
throw new \Exception("No array field to search");
|
||||||
@ -117,20 +108,12 @@ final class PersonRepository
|
|||||||
$qb->setParameter('phonenumber', '%'.$phonenumber.'%');
|
$qb->setParameter('phonenumber', '%'.$phonenumber.'%');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
protected function parsePhoneNumber(string $phonenumber): string
|
||||||
* @param $phonenumber
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
protected function parsePhoneNumber($phonenumber): string
|
|
||||||
{
|
{
|
||||||
return \str_replace(' ', '', $phonenumber);
|
return \str_replace(' ', '', $phonenumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
protected function addByCenters(QueryBuilder $qb, array $centers): void
|
||||||
* @param QueryBuilder $qb
|
|
||||||
* @param array $centers
|
|
||||||
*/
|
|
||||||
protected function addByCenters(QueryBuilder $qb, array $centers)
|
|
||||||
{
|
{
|
||||||
if (count($centers) > 0) {
|
if (count($centers) > 0) {
|
||||||
$qb->andWhere($qb->expr()->in('p.center', ':centers'));
|
$qb->andWhere($qb->expr()->in('p.center', ':centers'));
|
||||||
|
@ -6,12 +6,6 @@ use Chill\PersonBundle\Entity\SocialWork\Evaluation;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* @method Evaluation|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method Evaluation|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method Evaluation[] findAll()
|
|
||||||
* @method Evaluation[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
final class EvaluationRepository
|
final class EvaluationRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
@ -6,12 +6,6 @@ use Chill\PersonBundle\Entity\SocialWork\Goal;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* @method Goal|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method Goal|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method Goal[] findAll()
|
|
||||||
* @method Goal[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
final class GoalRepository
|
final class GoalRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
@ -6,12 +6,6 @@ use Chill\PersonBundle\Entity\SocialWork\Result;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* @method Result|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method Result|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method Result[] findAll()
|
|
||||||
* @method Result[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
final class ResultRepository
|
final class ResultRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
@ -6,12 +6,6 @@ use Chill\PersonBundle\Entity\SocialWork\SocialAction;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* @method SocialAction|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method SocialAction|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method SocialAction[] findAll()
|
|
||||||
* @method SocialAction[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
final class SocialActionRepository
|
final class SocialActionRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
@ -7,12 +7,6 @@ use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
/**
|
|
||||||
* @method SocialIssue|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method SocialIssue|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method SocialIssue[] findAll()
|
|
||||||
* @method SocialIssue[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
final class SocialIssueRepository
|
final class SocialIssueRepository
|
||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user