Last active
September 26, 2018 14:36
-
-
Save wbrframe/ebb5f55621f2e5689a62f0228a6d90bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function testIdentityMapRepositoryFindBy() | |
{ | |
$repository = $this->entityManager->getRepository('Person'); | |
$objectA = $repository->findOneBy(array('name' => 'Benjamin')); | |
$objectB = $repository->findOneBy(array('name' => 'Benjamin')); | |
$this->assertSame($objectA, $objectB); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment