From 5cd73f0d12526d6091947e468c5f51eb803fd45a Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 13 Jan 2015 01:36:13 +0100 Subject: [PATCH] #470 DDC-54 DDC-3005 - reverting assertion `postLoad` should be triggered eagerly when using `iterate()`, as worse problems may be experienced with missed initialization via listeners. --- .../Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php b/tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php index 29566d8cc..d1b020e03 100644 --- a/tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php @@ -229,10 +229,7 @@ DQL; ->iterate(); foreach ($result as $entity) { - $this->assertFalse( - $entity[0]->postLoadCallbackInvoked, - 'During iteration, postLoad callbacks are not triggered until the end of the resultset is reached' - ); + $this->assertTrue($entity[0]->postLoadCallbackInvoked); $this->assertFalse($entity[0]->postLoadCascaderNotNull); break;