[DDC-1655] PostLoad not getting fired Created: 16/Feb/12  Updated: 14/Mar/12  Resolved: 14/Mar/12

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: 2.2
Fix Version/s: 2.2.1
Security Level: All

Type: Bug Priority: Major
Reporter: Denny Swindle Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None


It appears that @PostLoad is not getting fired in 2.2.0. I have an entity with a list of OneToMany objects. The objects in the one-to-many list have @PostLoad method defined. Using the find method on EntityManager, I can pull in the entity:

$object = EntityManager->find('entity\path\', $id);


$list = $object->getList();
foreach($list as $item) {


Each "item" has a @PostLoad method defined. This PostLoad method on each $item gets called successfully in 2.1.5, but it doesn't appear to be getting called in 2.2.0.

This is my first time submitting a bug, so let me know if you need anything else.

Comment by Benjamin Eberlei [ 17/Feb/12 ]

Are the One To many part of an inheritance hierachy? Then this could be related to DDC-1640

Comment by Benjamin Eberlei [ 17/Feb/12 ]

Please report if DDC-1640 fixes your issue. I keep this bug open as long.

Comment by Denny Swindle [ 13/Mar/12 ]

It looks like release 2.2.1 fixes this issue. Thanks so much

Generated at Thu Sep 03 17:39:25 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.