mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
DX [cs-fix]
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user