From 45e9d6ed5a91605a7c9c6923c2bfc6c9336e3fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Gallego?= Date: Tue, 18 Feb 2014 16:27:51 +0100 Subject: [PATCH] Fix test on some RDBMS --- .../ORM/Functional/PersistentCollectionCriteriaTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/PersistentCollectionCriteriaTest.php b/tests/Doctrine/Tests/ORM/Functional/PersistentCollectionCriteriaTest.php index c2f5e76d2..178e51fc1 100644 --- a/tests/Doctrine/Tests/ORM/Functional/PersistentCollectionCriteriaTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/PersistentCollectionCriteriaTest.php @@ -74,8 +74,9 @@ class PersistentCollectionCriteriaTest extends \Doctrine\Tests\OrmFunctionalTest $this->loadFixture(); $repository = $this->_em->getRepository('Doctrine\Tests\Models\Company\CompanyOrganization'); - $organization = $repository->find(1); - $events = $organization->events->matching(new Criteria()); + $organizations = $repository->findAll(); + $organization = $organizations[0]; + $events = $organization->events->matching(new Criteria()); $this->assertInstanceOf('Doctrine\ORM\LazyCriteriaCollection', $events); $this->assertFalse($events->isInitialized());