mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
WIP started center_history query for duplicate person merge
This commit is contained in:
@@ -59,12 +59,13 @@ class PersonMoveTest extends KernelTestCase
|
||||
{
|
||||
$move = new PersonMove($this->em, $this->personMoveManager, $this->eventDispatcher);
|
||||
$sqls = $move->getSQL($personA, $personB);
|
||||
//$conn = $this->em->getConnection();
|
||||
$this->em->getConnection()->transactional(function (Connection $conn) use ($personA, $personB, $sqls) {
|
||||
$conn = $this->em->getConnection();
|
||||
// $this->em->getConnection()->transactional(function (Connection $conn) use ($personA, $personB, $sqls) {
|
||||
foreach ($sqls as $sql) {
|
||||
// var_dump($sql);
|
||||
$conn->executeStatement($sql);
|
||||
}
|
||||
});
|
||||
// });
|
||||
|
||||
$personA = $this->em->find(Person::class, $personA->getId());
|
||||
$personB = $this->em->find(Person::class, $personB->getId());
|
||||
@@ -118,8 +119,6 @@ class PersonMoveTest extends KernelTestCase
|
||||
->setStartDate(new \DateTimeImmutable('2023-01-01'))
|
||||
);
|
||||
|
||||
|
||||
|
||||
$this->em->persist($personA);
|
||||
$this->em->persist($personB);
|
||||
$this->em->persist($household);
|
||||
|
Reference in New Issue
Block a user