[PR #10408] Field mapping improvements #12341

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

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

State: closed
Merged: Yes


It will be hard to finish https://github.com/doctrine/orm/pull/10405, but this should get us closer to it.
Also, I learnt that DTOs shouldn't be used in mapping drivers, because drivers produce incomplete field mappings (they might not have a type), and also produce mapping overrides that might have even fewer fields. DTOs should be used in the class metadata and its consumers.

**Original Pull Request:** https://github.com/doctrine/orm/pull/10408 **State:** closed **Merged:** Yes --- It will be hard to finish https://github.com/doctrine/orm/pull/10405, but this should get us closer to it. Also, I learnt that DTOs shouldn't be used in mapping drivers, because drivers produce incomplete field mappings (they might not have a type), and also produce mapping overrides that might have even fewer fields. DTOs should be used in the class metadata and its consumers.
admin added the pull-request label 2026-01-22 16:13:45 +01:00
admin closed this issue 2026-01-22 16:13:45 +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#12341