mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 22:46: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();
|
$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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user