DX [cs-fix]

This commit is contained in:
Julie Lenaerts 2023-05-25 12:52:23 +02:00
parent 60aeb57c45
commit 72f5b0b275

View File

@ -46,8 +46,8 @@ class RelationshipNoDuplicateValidator extends ConstraintValidator
]);
foreach ($relationships as $r) {
if ( spl_object_hash($r) !== spl_object_hash($value) and
$r->getFromPerson() === $fromPerson
if (spl_object_hash($r) !== spl_object_hash($value)
and $r->getFromPerson() === $fromPerson
|| $r->getFromPerson() === $toPerson
|| $r->getToPerson() === $fromPerson
|| $r->getToPerson() === $toPerson