#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:
parent
0a19fbb376
commit
5cd73f0d12
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user