dustin10/VichUploaderBundle — pull request #5 by aboks (2012-01-26 09:37:14+00:00)
Title: Added re-population of UploadableField-properties.

With these changes, `UploadableField`-properties are re-populated with `File`-objects from their corresponding filename-properties after the `Uploadable` object is loaded from the ORM/ODM.

Usually I store uploads outside the webroot, and need to perform other operations on those files rather than just display a link. For this purpose it is handy if `$product->getImage()` (in the example) always returns a `Symfony\Component\HttpFoundation\File\File`-object if a filename is set, even if `$product` was just loaded from the ORM/ODM and therefore only has `$imageName` set. This PR makes this possible.

---
PS: Thanks for your awesome bundle, especially now multiple uploadable fields per entity are supported. It is really useful for a current project, and I will try to contribute some PR's along the way.