FIX [filiation] change validator to allow delete and patch of relationship

This commit is contained in:
Julie Lenaerts 2023-05-25 12:43:09 +02:00
parent 977299192f
commit 60aeb57c45

View File

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