mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 14:36:13 +00:00
person: correct relationship no duplicate validator
This commit is contained in:
parent
3ad8223949
commit
f8410de569
@ -35,10 +35,8 @@ class RelationshipNoDuplicateValidator extends ConstraintValidator
|
||||
$toPerson = $relationship->getToPerson();
|
||||
|
||||
$relationships = $this->relationshipRepository->findBy([
|
||||
'fromPerson' => $fromPerson,
|
||||
'fromPerson' => $toPerson,
|
||||
'toPerson' => $fromPerson,
|
||||
'toPerson' => $fromPerson,
|
||||
'fromPerson' => [$fromPerson, $toPerson],
|
||||
'toPerson' => [$fromPerson, $toPerson],
|
||||
]);
|
||||
|
||||
foreach ($relationships as $r) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user