DDC-1556: @PostLoad hook being executed more than once for the same entity when loaded through relationship #2191

Closed
doctrinebot opened this Issue Dec 22, 2011 · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user agvstin:

Scenario:

  • Entity mapping: A manytomany B
  • Hooks: a @PostLoad hook on B
  • Persisted entities: two instances of A related to the same instance of B

When I load both A's using the EntityManager, and access the instance of B (internally from each A), the @PostLoad hook is being triggered twice instead of once (as there is only one instance of A).

I left an attachment with the code ready to run (please read the README.md to setup the environment).

@doctrinebot

Comment created by @beberlei:

Fixed for 2.2.1

@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