Commit 9497189
authored
Minor change
"upload" was the wrong term, since an upload is initiated by the end-user, not by Symfony.
Question: Is a Doctrine Listener preferred over a view transformer? I'm wondering, since the error message recommends a view transformer:
> The form's view data is expected to be an instance of class Symfony\Component\HttpFoundation\File\File, but is a(n) string. You can avoid this error by setting the "data_class" option to null or by adding a view transformer that transforms a(n) string to an instance of Symfony\Component\HttpFoundation\File\File.1 parent 1b8aacb commit 9497189
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
0 commit comments