-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add XSD "orm:columntoken" type in order to support reserved words in column names #9123
Conversation
a4cdee6
to
e872386
Compare
21947f0
to
fdf8b71
Compare
have you considered making a custom simple type which just adds backticks to the pattern of
possible implementation would be: <xs:simpleType name="columntoken" id="columntoken">
<xs:restriction base="xs:token">
<xs:pattern value="[-._:A-Za-z0-9`]+" id="columntoken.pattern">
</xs:pattern>
</xs:restriction>
</xs:simpleType> |
fdf8b71
to
e662483
Compare
e662483
to
705d88e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for your help @wickedOne.
I've changed the type as suggested.
Since the support for the backticks in the column name definition were already supported and the issue is present only in the schema validation, I think this is a bugfix instead of improvement. |
nitpicking here, but the xsd didn't "support" backticks, the xsd simply isn't enforced (i.e. doctrine doesn't stop processing your mapping because it doesn't validate against the xsd). so "improvement" seems about right to me as it didn't stop you from using this library without this adjustment |
In my case, this situation is preventing my private builds to pass, since I started to check my schema against the XSD definition. |
Thanks @phansys! Kind of on the fence regarding the label |
I don't know if this is the proper way to support backticks in the column definition from the XML perspective, but currently if they are used, the schema validation fails (see this sample action):
See Quoting Reserved Words.