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

#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.
This commit is contained in:
Marco Pivetta 2015-01-13 01:36:13 +01:00
parent 0a19fbb376
commit 5cd73f0d12

View File

@ -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;