Skip to content

Commit

Permalink
Merge pull request #2 from HeahDude/fix/entity-validator
Browse files Browse the repository at this point in the history
Fixed UniqueEntityValidator tests
  • Loading branch information
dmaicher committed Jan 16, 2017
2 parents 523be32 + 745cc83 commit d942a96
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,11 @@ public function testValidateUniquenessWithCompositeObjectNoToStringIdEntity()

$objectOne = new SingleIntIdNoToStringEntity(1, 'foo');
$objectTwo = new SingleIntIdNoToStringEntity(2, 'bar');

$this->em->persist($objectOne);
$this->em->persist($objectTwo);
$this->em->flush();

$entity = new CompositeObjectNoToStringIdEntity($objectOne, $objectTwo);

$this->em->persist($entity);
Expand Down

0 comments on commit d942a96

Please sign in to comment.