Doctrine 2 - ORM

How to register lifecycle callbacks from YAML is not done correctly in the Events section of the documentation.