Listener order with Table Parent and Child

I have a Entity Parent (Invoice) with a COMPOSITION for Entity childs (Invoice Line). I use a EntityCombinedScreen to display and edit datas. I need an event that is fired only once when the parent or child is updated. But when I add a child line The event AfterInsertEntityListener for the child is fired after the AfterInsertEntityListener of the parent, so inside this event (the parent ones) I don’t get the new line created.

How can I have an event fired only once when the parent is updated, inserted and child updated ou inserted?