Symfony's FormView object contains several variables that can be accessed through a branch using a public property vars.
Two of these variables are: valueand data.
So, suppose we have our variable formin a branch, we can access it with form.vars.dataand form.vars.value.
The documentation is clear about the meaning of these properties:
but when I use {{ dump(form.vars) }}and compare form.vars.valueand form.vars.data, they look the same. What for? What is the correct meaning and proper use of these two properties?
source
share