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")
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.