Corrections after merge (double declares)

This commit is contained in:
Julie Lenaerts 2021-12-13 19:24:21 +01:00
parent 6e079fa771
commit 19741530bf
2 changed files with 0 additions and 38 deletions

View File

@ -35,15 +35,6 @@ class UserNormalizer implements ContextAwareNormalizerInterface, NormalizerAware
private UserRender $userRender;
const NULL_USER = [
'type' => 'user',
'id' => '',
'username' => '',
'text' => '',
'label' => '',
'email' => '',
];
public function __construct(UserRender $userRender)
{
$this->userRender = $userRender;

View File

@ -24,9 +24,6 @@ class RelationshipRepository implements ObjectRepository
private EntityRepository $repository;
private EntityManagerInterface $em;
private EntityRepository $repository;
public function __construct(EntityManagerInterface $em)
{
@ -93,30 +90,4 @@ class RelationshipRepository implements ObjectRepository
return $qb;
}
public function findOneBy(array $criteria): ?Relationship
{
return $this->findOneBy($criteria);
}
public function getClassName(): string
{
return Relationship::class;
}
private function buildQueryByPerson(Person $person): QueryBuilder
{
$qb = $this->em->createQueryBuilder();
$qb
->from(Relationship::class, 'r')
->where(
$qb->expr()->orX(
$qb->expr()->eq('r.fromPerson', ':person'),
$qb->expr()->eq('r.toPerson', ':person')
)
)
->setParameter('person', $person);
return $qb;
}
}