Doctrine 2 - ORM

OnFlush event in transaction