mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix error in the doublons queries
This commit is contained in:
parent
c1d70ec63e
commit
77180ebb0c
@ -37,11 +37,11 @@ class PersonMoveRelationHandler implements PersonMoveSqlHandlerInterface
|
||||
);
|
||||
SQL, $from->getId(), $from->getId(), $to->getId(), $from->getId(), $from->getId(), $to->getId());
|
||||
|
||||
$deleteSql = sprintf(<<<'SQL'
|
||||
DELETE FROM chill_person_relationships WHERE fromperson_id = %d;
|
||||
DELETE FROM chill_person_relationships WHERE toperson_id = %d;
|
||||
SQL, $from->getId(), $from->getId());
|
||||
$deleteSql = [
|
||||
sprintf("DELETE FROM chill_person_relationships WHERE fromperson_id = %d", $from->getId()),
|
||||
sprintf("DELETE FROM chill_person_relationships WHERE toperson_id = %d" , $from->getId())
|
||||
];
|
||||
|
||||
return [$insertSql, $deleteSql];
|
||||
return [$insertSql, ...$deleteSql];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user