xml-mapping: custom-id-generator class not a valid value for nmtoken #5802

Open
opened 2026-01-22 15:18:20 +01:00 by admin · 0 comments
Owner

Originally created by @fsmeier on GitHub (Dec 12, 2017).

Hello together,

<id name="id" column="id" type="uuid">
    <generator strategy="CUSTOM"/>
    <custom-id-generator class="Ramsey\Uuid\Doctrine\UuidGenerator"/>
</id>

Gives 'Ramsey\Uuid\Doctrine\UuidGenerator' is not a valid value for 'NMTOKEN'

Somebody reported it here already: https://groups.google.com/forum/#!topic/doctrine-user/q9aHfy5l30M

But no update so far. I wanted to try to make a PR but i am struggling a bit with creating the test-case or more like "how to create an sample-xml-mapping-file" for this case.

All the best,
Florian

Originally created by @fsmeier on GitHub (Dec 12, 2017). Hello together, ```xml <id name="id" column="id" type="uuid"> <generator strategy="CUSTOM"/> <custom-id-generator class="Ramsey\Uuid\Doctrine\UuidGenerator"/> </id> ``` Gives `'Ramsey\Uuid\Doctrine\UuidGenerator' is not a valid value for 'NMTOKEN'` Somebody reported it here already: https://groups.google.com/forum/#!topic/doctrine-user/q9aHfy5l30M But no update so far. I wanted to try to make a PR but i am struggling a bit with creating the test-case or more like "how to create an sample-xml-mapping-file" for this case. All the best, Florian
admin added the BugMissing Tests labels 2026-01-22 15:18:20 +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#5802