|
@@ -54,7 +54,7 @@ discard block |
|
|
block discarded – undo |
|
54
|
54
|
$this->expectException(DBALException::class); |
|
55
|
55
|
$this->expectExceptionMessage('violates unique constraint "unique_field_constraint"'); |
|
56
|
56
|
|
|
57
|
|
- $this->entityManager->transactional(static function (EntityManagerInterface $entityManager) : void { |
|
|
57
|
+ $this->entityManager->transactional(static function(EntityManagerInterface $entityManager) : void { |
|
58
|
58
|
$entityManager->getConnection()->exec('SET CONSTRAINTS "unique_field_constraint" DEFERRED'); |
|
59
|
59
|
$entityManager->persist(new GH7555Entity()); |
|
60
|
60
|
}); |
|
@@ -70,7 +70,7 @@ discard block |
|
|
block discarded – undo |
|
70
|
70
|
|
|
71
|
71
|
$this->entityManager->getConnection()->setNestTransactionsWithSavepoints(true); |
|
72
|
72
|
|
|
73
|
|
- $this->entityManager->transactional(static function (EntityManagerInterface $entityManager) : void { |
|
|
73
|
+ $this->entityManager->transactional(static function(EntityManagerInterface $entityManager) : void { |
|
74
|
74
|
$entityManager->getConnection()->exec('SET CONSTRAINTS "unique_field_constraint" DEFERRED'); |
|
75
|
75
|
$entityManager->persist(new GH7555Entity()); |
|
76
|
76
|
$entityManager->flush(); |
Please login to merge, or discard this patch.