File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -191,8 +191,9 @@ choice_name
191191
192192**type **: ``string ``, ``callable `` or :class: `Symfony\\ Component\\ PropertyAccess\\ PropertyPath ` **default **: id
193193
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.
196197
197198choice_value
198199~~~~~~~~~~~~
@@ -209,6 +210,11 @@ even with a custom ``query_builder`` to be loaded.
209210If it can be usefull for API to use an entity property as string value, you
210211will gain performances by letting this option set by default.
211212
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+
212218choices
213219~~~~~~~
214220
You can’t perform that action at this time.
0 commit comments