Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.0] Separate ID mapping from fields in XML driver #1807

Merged
merged 1 commit into from
Jun 15, 2018

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Jun 5, 2018

Q A
Type improvement
BC Break yes
Fixed issues #1806

Summary

This PR extracts identifier options from the field tag in the XML mapping and moves it to a new id field. This is done to make it easier to map identifiers and to have fewer incompatibilities to take care of (e.g. it doesn't make sense to specify generator options on non-identifier fields and identifiers can't take many of the options available to regular fields). It also brings identifier mappings more in-line with what we're planning to do with GridFS fields (see #1790).

Note: this change needs to be backported to 1.3, along with a deprecation warning about id="true" being removed in 2.0.

@alcaeus alcaeus added this to the 2.0.0 milestone Jun 5, 2018
@alcaeus alcaeus self-assigned this Jun 5, 2018
@alcaeus alcaeus merged commit 08b9e17 into doctrine:master Jun 15, 2018
@alcaeus alcaeus deleted the use-more-specific-id-mapping branch June 15, 2018 05:03
alcaeus added a commit to alcaeus/mongodb-odm that referenced this pull request Jan 9, 2019
@alcaeus alcaeus mentioned this pull request Jan 9, 2019
alcaeus added a commit to alcaeus/mongodb-odm that referenced this pull request Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants