-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Drop "simple" attribute from references in XML schema #1895
Conversation
Tests are unhappy with your change ;) |
Meh, took a gamble on those exception messages. Who’d think we actually check them in tests 😛 |
You'd be surprised :D https://github.com/doctrine/mongodb-odm/search?q=expectedExceptionMessage&type=Code |
430e876
to
ddcbb73
Compare
Tests fixed 👍 |
Awesome! 👍 |
Just to let you know about this change. I don't know if it comes only from how Phpstorm is reading the xsd file or if the |
@etshy: Would you mind submitting a quick PR to move the comment on its own line above the "simple" attributes? Feel free to link back to this PR in your description for added context. According to https://stackoverflow.com/q/1950075/162228, there isn't a standardized way to mark elements in an XSD as deprecated. It does seem like PhpStorm is picking up on the comment and applying it to the next element it sees; however, I wasn't able to find any reference to that behavior online. The SO thread above also suggests using an |
I just realized my problem is not about this PR but surely a much older one... as this one remove completely the Do I still make a PR to 1.3 branch, or there is no need ? Edit : Nothing else |
I'd say that PR to 1.3 would still be great, better to have proper attribute shown as deprecated in PHPStorm. If it'd cause troubles in some other editors, we can revisit when it does happen |
Ah, I misread the diff as well. Looks like the comment originated in 1.1.0 with 3b4851c. A 1.3 release is still forthcoming, so I don't see any reason you can't submit a PR against that branch. |
Summary
The
simple
option for references has been dropped in favour of thestoreAs
directive, so it makes sense to drop this from the schema. This PR also updates the wording in some exception messages to no longer refer to these references as "simple" but rather "identifier references".