File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,13 @@ location form type::
92
92
->add('country', 'text');
93
93
}
94
94
95
+ public function getDefaultOptions(array $options)
96
+ {
97
+ return array(
98
+ 'virtual' => true,
99
+ );
100
+ }
101
+
95
102
public function getName()
96
103
{
97
104
return 'location';
@@ -124,7 +131,7 @@ Look at the result::
124
131
}
125
132
126
133
With the virtual option set to false (default behavior), the Form Component
127
- expect each underlying object to have a ``foo `` (or ``bar ``) property that
134
+ expects each underlying object to have a ``foo `` (or ``bar ``) property that
128
135
is either some object or array which contains the four location fields.
129
136
Of course, we don't have this object/array in our entities and we don't want it!
130
137
You can’t perform that action at this time.
0 commit comments