@@ -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 | |
@@ -112,8 +112,6 @@ The class of your entity (e.g. ``AcmeStoreBundle:Category``). This can be
112
112
a fully-qualified class name (e.g. ``Acme\StoreBundle\Entity\Category ``)
113
113
or the short alias name (as shown prior).
114
114
115
- .. include :: /reference/forms/types/options/data_class.rst.inc
116
-
117
115
em
118
116
~~
119
117
@@ -125,7 +123,7 @@ instead of the default entity manager.
125
123
group_by
126
124
~~~~~~~~
127
125
128
- **type **: ``string ``
126
+ **type **: ``string `` ** default ** `` null ``
129
127
130
128
This is a property path (e.g. ``author.name ``) used to organize the
131
129
available choices in groups. It only works when rendered as a select tag
@@ -136,7 +134,7 @@ the select tag, without a surrounding optgroup.
136
134
property
137
135
~~~~~~~~
138
136
139
- **type **: ``string ``
137
+ **type **: ``string `` ** default **: `` null ``
140
138
141
139
This is the property that should be used for displaying the entities
142
140
as text in the HTML element. If left blank, the entity object will be
@@ -175,9 +173,9 @@ choice_list
175
173
176
174
**default **: :class: `Symfony\\ Bridge\\ Doctrine\\ Form\\ ChoiceList\\ EntityChoiceList `
177
175
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 `
176
+ The purpose of the ``entity `` type is to create and configure this
177
+ `` EntityChoiceList `` for you, by using all of the above options. If you need
178
+ to override this option, you may just consider using the :doc: `/reference/forms/types/choice `
181
179
directly.
182
180
183
181
choices
@@ -189,6 +187,14 @@ Instead of allowing the `class`_ and `query_builder`_ options to fetch the
189
187
entities to include for you, you can pass the ``choices `` option directly.
190
188
See :ref: `reference-forms-entity-choices `.
191
189
190
+ data_class
191
+ ~~~~~~~~~~
192
+
193
+ **type **: ``string `` **default **: ``null ``
194
+
195
+ This option is not used in favor of the ``class `` option which is required
196
+ to query the entities.
197
+
192
198
Inherited Options
193
199
-----------------
194
200
0 commit comments