File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -191,8 +191,9 @@ choice_name
191
191
192
192
**type **: ``string ``, ``callable `` or :class: `Symfony\\ Component\\ PropertyAccess\\ PropertyPath ` **default **: id
193
193
194
- By default the name of each field is the id of the entity, if it can be get in
195
- the class metadata by an internal id reader.
194
+ By default the name of each field is the id of the entity, if it can be read
195
+ from the class metadata by an internal id reader. Otherwise the process will
196
+ fall back on an incremental integer.
196
197
197
198
choice_value
198
199
~~~~~~~~~~~~
@@ -209,6 +210,11 @@ even with a custom ``query_builder`` to be loaded.
209
210
If it can be usefull for API to use an entity property as string value, you
210
211
will gain performances by letting this option set by default.
211
212
213
+ .. note ::
214
+
215
+ If the id cannot be read, for BC, the component checks if the class implements
216
+ ``__toString() `` and will use an incremental integer otherwise.
217
+
212
218
choices
213
219
~~~~~~~
214
220
You can’t perform that action at this time.
0 commit comments