mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
person: correct relationship no duplicate validator
This commit is contained in:
@@ -35,10 +35,8 @@ class RelationshipNoDuplicateValidator extends ConstraintValidator
|
|||||||
$toPerson = $relationship->getToPerson();
|
$toPerson = $relationship->getToPerson();
|
||||||
|
|
||||||
$relationships = $this->relationshipRepository->findBy([
|
$relationships = $this->relationshipRepository->findBy([
|
||||||
'fromPerson' => $fromPerson,
|
'fromPerson' => [$fromPerson, $toPerson],
|
||||||
'fromPerson' => $toPerson,
|
'toPerson' => [$fromPerson, $toPerson],
|
||||||
'toPerson' => $fromPerson,
|
|
||||||
'toPerson' => $fromPerson,
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
foreach ($relationships as $r) {
|
foreach ($relationships as $r) {
|
||||||
|
Reference in New Issue
Block a user