Doctrine 2 - ORM

GH-169: preFlush event and lifecycle callback