There is, I think, a problem in the management of LifecycleCallbacks.
When importing my entity, @ORM \ HasLifecycleCallbacks, @PrePersist and @PreFlush annotations already present are not recognized.
If I add them in my entity, at each generation, the method is added again.
Thanks for your help.
Small precision, I tried with a new project and everything goes well
[Skipper 188.8.131.520 Symfony4 Doctrine 2]