Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Removing some extra details from #6444#6600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -194,39 +194,16 @@ return a ``QueryBuilder``. | ||
| Overridden Options | ||
| ------------------ | ||
| .. include:: /reference/forms/types/options/choice_name.rst.inc | ||
| In the ``EntityType``, this defaults to the ``id`` of the entity, if it can | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. A question: does"the id of the entity" refer explicitly to a property called MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. it refers to the PK, but I believe none of this works the same with composite PK's, but I'm not sure exactly what happens on that case. Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. It works at the moment the identifier is in a single column (any PK or association), seehttps://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php#L112 for more details. | ||
| be read. Otherwise, it falls back to using auto-incrementing integers. | ||
| .. include:: /reference/forms/types/options/choice_value.rst.inc | ||
| In the ``EntityType``, this is overridden to use the ``id`` by default. When the | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Thanks@weaverryan, I agree with those steps. However this information in Because as you said in your description, using this option prevents the optimization when loading entities. Note that there is some work in progress (and planned to be) where feedbacks would be very welcome:#6265 and#6446. Besides that 👍 | ||
| ``id`` is used, Doctrine only queries for the objects for the ids that were actually | ||
| submitted. | ||
| choices | ||
| ~~~~~~~ | ||