#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();
|
->iterate();
|
||||||
|
|
||||||
foreach ($result as $entity) {
|
foreach ($result as $entity) {
|
||||||
$this->assertFalse(
|
$this->assertTrue($entity[0]->postLoadCallbackInvoked);
|
||||||
$entity[0]->postLoadCallbackInvoked,
|
|
||||||
'During iteration, postLoad callbacks are not triggered until the end of the resultset is reached'
|
|
||||||
);
|
|
||||||
$this->assertFalse($entity[0]->postLoadCascaderNotNull);
|
$this->assertFalse($entity[0]->postLoadCascaderNotNull);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user