0

I want save new entity after update object (Save history data).

I try add object to EntityManager and flush in preUpdate event, but i have recursion effect.

1
  • Be more clear when asking questions Feb 7, 2013 at 7:28

1 Answer 1

3

You are probably calling EntityManager#flush within a lifecycle event: this is not supported and it will obviously lead to infinite recursion problems.

Not the answer you're looking for? Browse other questions tagged or ask your own question.