From 57bd6d1be4c2bc77cd1ad22d40f4c2696bfae53e Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 26 Oct 2023 17:04:56 +0200 Subject: [PATCH] remove dump --- .../Actions/Remove/Handler/PersonMoveRelationHandler.php | 4 ++-- .../Controller/PersonDuplicateController.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Actions/Remove/Handler/PersonMoveRelationHandler.php b/src/Bundle/ChillPersonBundle/Actions/Remove/Handler/PersonMoveRelationHandler.php index 9d8f4b5e1..d4e9be2a2 100644 --- a/src/Bundle/ChillPersonBundle/Actions/Remove/Handler/PersonMoveRelationHandler.php +++ b/src/Bundle/ChillPersonBundle/Actions/Remove/Handler/PersonMoveRelationHandler.php @@ -25,8 +25,8 @@ class PersonMoveRelationHandler implements PersonMoveSqlHandlerInterface public function getSqls(string $className, string $field, Person $from, Person $to): array { $insertSql = sprintf(<<<'SQL' - INSERT INTO chill_person_relationships (id, relation_id, reverse, fromperson_id, toperson_id) - SELECT nextval('chill_person_relationships_id_seq'), relation_id, reverse, fromperson_id, toperson_id + 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, fromperson_id, toperson_id FROM chill_person_relationships cpr WHERE fromperson_id = %d OR toperson_id = %d AND NOT EXISTS ( diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php b/src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php index 034189674..3b7188513 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php @@ -82,7 +82,6 @@ class PersonDuplicateController extends \Symfony\Bundle\FrameworkBundle\Controll $connection->beginTransaction(); foreach ($sqls as $sql) { - dump($sql); $connection->executeQuery($sql); } $connection->commit();