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.

ZhukV
  • 2,892
  • 6
  • 25
  • 36

1 Answers1

3

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

Ocramius
  • 25,171
  • 7
  • 103
  • 107