Closed thibmonier closed 11 years ago
Hi @thibmonier
Could you please show us your generator file?
Thank you,
And if you set dbType
to string
?
like this:
fields:
articleImage:
label: Image
dbType: string
formType: single_upload
addFormOptions:
nameable: articleImageName
deleteable: articleImagePath
data_class: Symfony\Component\HttpFoundation\File\File
finally I did this and it's working :
fields:
articleImage:
label: Image
formType: single_upload
dbType: string
addFormOptions:
nameable: articleImageName
deleteable: articleImagePath
data_class: Symfony\Component\HttpFoundation\File\File
previewFilter: news_mini
I'm trying to use a single_upload, I follow instructions in documentation with VichUploader but I have this error when I'm doing a cache:clear or when I'm trying to display the list.
My config in generator.yml
And my entity
Any ideas ?