StofDoctrineExtensionsBundle
StofDoctrineExtensionsBundle copied to clipboard
FileUpload extension?
I am trying to implement file upload behavior based on cookbook http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html
Just an idea - it would be nice if somebody could integrate that code into extension. Something like
/** * @Gedmo\Upload * @ORM\Column(name="screenshot",fileUploadField="screenshotFile") */ protected $screenshot;
fileUploadField - optional By default, this extension should add public property screenshotFile to entity, and prePersist function in order to upload that file into needed location and set primary field with file name.
I dont have enough knowledges yet to do it myself :)
Proposed the same to l3pp4rd/DoctrineExtensions https://github.com/l3pp4rd/DoctrineExtensions/issues/184#issuecomment-2564071