[PR #634] [WIP] Value objects #8484

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

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

State: closed
Merged: No


This pull request takes a different approach than GH-265 to implement ValueObjects. Instead of changing most of the code in every layer, we just inline embedded object class metadata into an entities metadata and then use a reflection proxy that looks like "ReflectionProperty" to do the rewiring.

The idea is inspired from Symfony Forms 'property_path' option, where you can write and read values to different parts of an object graph.

This is a WIP, there have been no further tests made about the consequences of this approach. The implementation is up for discussion.

**Original Pull Request:** https://github.com/doctrine/orm/pull/634 **State:** closed **Merged:** No --- This pull request takes a different approach than GH-265 to implement ValueObjects. Instead of changing most of the code in every layer, we just inline embedded object class metadata into an entities metadata and then use a reflection proxy that looks like "ReflectionProperty" to do the rewiring. The idea is inspired from Symfony Forms 'property_path' option, where you can write and read values to different parts of an object graph. This is a WIP, there have been no further tests made about the consequences of this approach. The implementation is up for discussion.
admin added the pull-request label 2026-01-22 16:00:08 +01:00
admin closed this issue 2026-01-22 16:00:08 +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#8484