symfony/symfony-docs — pull request #1423 by lebarde (2012-05-31 16:47:09+00:00)
Title: Fixes to the code in __Using Lifecycle Callbacks__

* When persisting an entity with a file, the Upload event must be triggered before persisting.
* In the @ORM\PostRemove function $file was not known (the correct var is actually $this->file).