dustin10/VichUploaderBundle — Issue #14: add the generated id to the filename
Author: matteosister
Created: 2012-02-29 00:08:18+00:00
State: open

By now it's not possible to give the Document (or Entity) a filename with the generated id. This is because the events is prePersist.

Are there any problems by changing prePersist to postPersist? (preUpdate is fine)
I could send you a PR. Maybe we should also add a parameter to let the user decide which lifecycle callback to use, and default to prePersist, so it won't break compatibility.

Let me know....