Documentation on this subject is rather scarce, and I can't find anything other than their documentation (http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html) on how to save just the relative path in the database and have the actual image on the webserver.
/**
* @ORM\Column(name="photo", type="blob", nullable=true)
*/
private $photo;
Do you declare that in your entity and generate getter/setters like you would with a regular variable? How do you get the data from the POST request in your controller and call the model function in order to save the BLOB to the database?
Thanks.