DDC-1655: PostLoad not getting fired #2298

Closed
doctrinebot opened this Issue Feb 16, 2012 · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user dswindle:

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

then:

$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.

@doctrinebot

Comment created by @beberlei:

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

@doctrinebot

Comment created by @beberlei:

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

@doctrinebot

Comment created by dswindle:

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

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.2.1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment