IphpFileStoreBundle icon indicating copy to clipboard operation
IphpFileStoreBundle copied to clipboard

FileValidator from Symfony package cant handle file from SonataAdminBundle filter

Open morozow opened this issue 11 years ago • 0 comments

Bundles: SonataAdminBundle IphpFileStoreBundle

Content: When build filter for current entity (Photo) I use another entity (Gallery) with field of IphpFile. It builds well. In front it shows well. I filter by Gallery: IphpFile field does not take part in filtering, only ID of gallery which has relation on Photo. After filtering I has an UnexpectedTypeException: "Expected argument of type "string", "array" given"

So, an exception throws if IphpFile field asserts: @Assert\File( maxSize="20M")

If delete this assert - there is no exception.

morozow avatar Sep 17 '14 12:09 morozow