1
0
mirror of synced 2025-01-19 15:01:40 +03:00

Fix test on some RDBMS

This commit is contained in:
Michaël Gallego 2014-02-18 16:27:51 +01:00 committed by Marco Pivetta
parent 11de4c2e72
commit 45e9d6ed5a

View File

@ -74,8 +74,9 @@ class PersistentCollectionCriteriaTest extends \Doctrine\Tests\OrmFunctionalTest
$this->loadFixture(); $this->loadFixture();
$repository = $this->_em->getRepository('Doctrine\Tests\Models\Company\CompanyOrganization'); $repository = $this->_em->getRepository('Doctrine\Tests\Models\Company\CompanyOrganization');
$organization = $repository->find(1); $organizations = $repository->findAll();
$events = $organization->events->matching(new Criteria()); $organization = $organizations[0];
$events = $organization->events->matching(new Criteria());
$this->assertInstanceOf('Doctrine\ORM\LazyCriteriaCollection', $events); $this->assertInstanceOf('Doctrine\ORM\LazyCriteriaCollection', $events);
$this->assertFalse($events->isInitialized()); $this->assertFalse($events->isInitialized());