[PR #7614] Allow to escape reserved words in xml mapping #10573

Closed
opened 2026-01-22 16:08:00 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/7614

State: closed
Merged: No


When escaping reserved words in XML mapping XSD validation fails. This PR uses regex to allow backticks. This regex is also much more restrictive than xs:NMTOKEN, let me know if that's not okay.

<field name="email" column="`user_email`" type="string" column-definition="CHAR(32) NOT NULL" />

Any advice in terms of tests? I went over #7324, #6728 and got a bit confused. As far as I understand, #6728 will introduce functionality that can be used in tests, and all XSD related PRs are waiting for that to be merged. Did I get it right?

**Original Pull Request:** https://github.com/doctrine/orm/pull/7614 **State:** closed **Merged:** No --- When escaping reserved words in XML mapping XSD validation fails. This PR uses regex to allow backticks. This regex is also much more restrictive than `xs:NMTOKEN`, let me know if that's not okay. ``` <field name="email" column="`user_email`" type="string" column-definition="CHAR(32) NOT NULL" /> ``` Any advice in terms of tests? I went over #7324, #6728 and got a bit confused. As far as I understand, #6728 will introduce functionality that can be used in tests, and all XSD related PRs are waiting for that to be merged. Did I get it right?
admin added the pull-request label 2026-01-22 16:08:00 +01:00
admin closed this issue 2026-01-22 16:08:00 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10573