symfony/symfony-docs — Issue #1051: Typo on "Databases and Doctrine" re: lifecycle callbacks
Author: nsmask
Created: 2012-01-31 16:50:38+00:00
State: open

The Lifecycle callbacks seem to be written incorrectly in the annotation examples:

The sf docs use camel case (i.e. prePersist) whereas doctrine is expecting PrePersist. Doctrine docs: http://www.doctrine-project.org/docs/orm/2.0/en/reference/events.html#lifecycle-events

Page in question: http://symfony.com/doc/2.0/book/doctrine.html#lifecycle-callbacks

Camelcase annotations were not read by Doctrine, had to use verbatim annotations from the Doctrine docs.