8000 Merge pull request #2 from HeahDude/fix/entity-validator · symfony/symfony@d942a96 · GitHub
[go: up one dir, main page]

Skip to content

Commit d942a96

Browse files
authored
Merge pull request #2 from HeahDude/fix/entity-validator
Fixed UniqueEntityValidator tests
2 parents 523be32 + 745cc83 commit d942a96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,11 @@ public function testValidateUniquenessWithCompositeObjectNoToStringIdEntity()
574574

575575
$objectOne = new SingleIntIdNoToStringEntity(1, 'foo');
576576
$objectTwo = new SingleIntIdNoToStringEntity(2, 'bar');
577+
578+
$this->em->persist($objectOne);
579+
$this->em->persist($objectTwo);
580+
$this->em->flush();
581+
577582
$entity = new CompositeObjectNoToStringIdEntity($objectOne, $objectTwo);
578583

579584
$this->em->persist($entity);

0 commit comments

Comments
 (0)
0