|
@@ -49,7 +49,7 @@ discard block |
|
|
block discarded – undo |
|
49
|
49
|
$this->expectException(PDOException::class); |
|
50
|
50
|
$this->expectExceptionMessage('violates unique constraint "unique_field_constraint"'); |
|
51
|
51
|
|
|
52
|
|
- $this->_em->transactional(static function (EntityManagerInterface $entityManager) : void { |
|
|
52
|
+ $this->_em->transactional(static function(EntityManagerInterface $entityManager) : void { |
|
53
|
53
|
$entityManager->getConnection()->exec('SET CONSTRAINTS "unique_field_constraint" DEFERRED'); |
|
54
|
54
|
$entityManager->persist(new GH7555Entity()); |
|
55
|
55
|
}); |
|
@@ -65,7 +65,7 @@ discard block |
|
|
block discarded – undo |
|
65
|
65
|
|
|
66
|
66
|
$this->_em->getConnection()->setNestTransactionsWithSavepoints(true); |
|
67
|
67
|
|
|
68
|
|
- $this->_em->transactional(static function (EntityManagerInterface $entityManager) : void { |
|
|
68
|
+ $this->_em->transactional(static function(EntityManagerInterface $entityManager) : void { |
|
69
|
69
|
$entityManager->getConnection()->exec('SET CONSTRAINTS "unique_field_constraint" DEFERRED'); |
|
70
|
70
|
$entityManager->persist(new GH7555Entity()); |
|
71
|
71
|
$entityManager->flush(); |
Please login to merge, or discard this patch.