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());
|
SQL, $from->getId(), $from->getId(), $to->getId(), $from->getId(), $from->getId(), $to->getId());
|
||||||
|
|
||||||
$deleteSql = sprintf(<<<'SQL'
|
$deleteSql = [
|
||||||
DELETE FROM chill_person_relationships WHERE fromperson_id = %d;
|
sprintf("DELETE FROM chill_person_relationships WHERE fromperson_id = %d", $from->getId()),
|
||||||
DELETE FROM chill_person_relationships WHERE toperson_id = %d;
|
sprintf("DELETE FROM chill_person_relationships WHERE toperson_id = %d" , $from->getId())
|
||||||
SQL, $from->getId(), $from->getId());
|
];
|
||||||
|
|
||||||
return [$insertSql, $deleteSql];
|
return [$insertSql, ...$deleteSql];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user