@@ -13,14 +13,14 @@ objects from the database.
13
13
| Rendered as | can be various tags (see :ref: `forms-reference-choice-tags `) |
14
14
+-------------+------------------------------------------------------------------+
15
15
| Options | - `class `_ |
16
- | | - `data_class `_ |
17
16
| | - `em `_ |
18
17
| | - `group_by `_ |
19
18
| | - `property `_ |
20
19
| | - `query_builder `_ |
21
20
+-------------+------------------------------------------------------------------+
22
21
| Overridden | - `choice_list `_ |
23
22
| options | - `choices `_ |
23
+ | | - `data_class `_ |
24
24
+-------------+------------------------------------------------------------------+
25
25
| Inherited | from the :doc: `choice </reference/forms/types/choice >` type: |
26
26
| options | |
@@ -117,15 +117,15 @@ or the short alias name (as shown prior).
117
117
em
118
118
~~
119
119
120
- **type **: ``string `` **default **: the default entity manager
120
+ **type **: ``string `` **default **: the default entity manager class
121
121
122
122
If specified, the specified entity manager will be used to load the choices
123
123
instead of the default entity manager.
124
124
125
125
group_by
126
126
~~~~~~~~
127
127
128
- **type **: ``string ``
128
+ **type **: ``string `` ** default ** `` null ``
129
129
130
130
This is a property path (e.g. ``author.name ``) used to organize the
131
131
available choices in groups. It only works when rendered as a select tag
@@ -136,7 +136,7 @@ the select tag, without a surrounding optgroup.
136
136
property
137
137
~~~~~~~~
138
138
139
- **type **: ``string ``
139
+ **type **: ``string `` ** default **: `` null ``
140
140
141
141
This is the property that should be used for displaying the entities
142
142
as text in the HTML element. If left blank, the entity object will be
@@ -175,9 +175,9 @@ choice_list
175
175
176
176
**default **: :class: `Symfony\\ Bridge\\ Doctrine\\ Form\\ ChoiceList\\ EntityChoiceList `
177
177
178
- The purpose of the ``entity `` type is to create and configure this `` EntityChoiceList ``
179
- for you, by using all of the above options. If you need to override this
180
- option, you may just consider using the :doc: `/reference/forms/types/choice `
178
+ The purpose of the ``entity `` type is to create and configure this
179
+ `` EntityChoiceList `` for you, by using all of the above options. If you need
180
+ to override this option, you may just consider using the :doc: `/reference/forms/types/choice `
181
181
directly.
182
182
183
183
choices
@@ -189,6 +189,14 @@ Instead of allowing the `class`_ and `query_builder`_ options to fetch the
189
189
entities to include for you, you can pass the ``choices `` option directly.
190
190
See :ref: `reference-forms-entity-choices `.
191
191
192
+ data_class
193
+ ~~~~~~~~~~
194
+
195
+ **type **: ``string `` **default **: ``null ``
196
+
197
+ This option is not used in favor of the ``class `` option which is required
198
+ to query the entities.
199
+
192
200
Inherited Options
193
201
-----------------
194
202
0 commit comments