Add a comment

This commit is contained in:
Julie Lenaerts 2023-10-30 13:52:50 +01:00
parent cac092c45a
commit bfe0d9a137

View File

@ -24,6 +24,7 @@ class PersonMoveRelationHandler implements PersonMoveSqlHandlerInterface
public function getSqls(string $className, string $field, Person $from, Person $to): array
{
// Insert sql statement taking into account two cases. One where the person is the fromperson and another where the person is the toperson in the relationship.
$insertSql = sprintf(<<<'SQL'
INSERT INTO chill_person_relationships (id, relation_id, reverse, createdat, createdby_id, fromperson_id, toperson_id)
SELECT nextval('chill_person_relationships_id_seq'), relation_id, reverse, createdat, createdby_id,