mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
FIX [filiation] change validator to allow delete and patch of relationship
This commit is contained in:
parent
977299192f
commit
60aeb57c45
@ -46,7 +46,7 @@ class RelationshipNoDuplicateValidator extends ConstraintValidator
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
foreach ($relationships as $r) {
|
foreach ($relationships as $r) {
|
||||||
if (
|
if ( spl_object_hash($r) !== spl_object_hash($value) and
|
||||||
$r->getFromPerson() === $fromPerson
|
$r->getFromPerson() === $fromPerson
|
||||||
|| $r->getFromPerson() === $toPerson
|
|| $r->getFromPerson() === $toPerson
|
||||||
|| $r->getToPerson() === $fromPerson
|
|| $r->getToPerson() === $fromPerson
|
||||||
|
Loading…
x
Reference in New Issue
Block a user