From bfe0d9a137e4d7f24be4e5bdfe33a2002154b2d1 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 30 Oct 2023 13:52:50 +0100 Subject: [PATCH] Add a comment --- .../Actions/Remove/Handler/PersonMoveRelationHandler.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Bundle/ChillPersonBundle/Actions/Remove/Handler/PersonMoveRelationHandler.php b/src/Bundle/ChillPersonBundle/Actions/Remove/Handler/PersonMoveRelationHandler.php index 1ba1f6766..ce6810429 100644 --- a/src/Bundle/ChillPersonBundle/Actions/Remove/Handler/PersonMoveRelationHandler.php +++ b/src/Bundle/ChillPersonBundle/Actions/Remove/Handler/PersonMoveRelationHandler.php @@ -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,