DDC-2374: [GH-634] [WIP] Value objects #2980

Closed
opened 2026-01-22 14:08:56 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 26, 2013).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of beberlei:

Url: https://github.com/doctrine/doctrine2/pull/634

Message:

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.

Originally created by @doctrinebot on GitHub (Mar 26, 2013). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: This issue is created automatically through a Github pull request on behalf of beberlei: Url: https://github.com/doctrine/doctrine2/pull/634 Message: 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 New Feature label 2026-01-22 14:08:56 +01:00
admin closed this issue 2026-01-22 14:08:57 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 26, 2013):

@doctrinebot commented on GitHub (Mar 26, 2013): - relates to [DDC-93: It would be nice if we could have support for ValueObjects](http://www.doctrine-project.org/jira/browse/DDC-93)
Author
Owner

@doctrinebot commented on GitHub (Jan 2, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-634] was closed:
https://github.com/doctrine/doctrine2/pull/634

@doctrinebot commented on GitHub (Jan 2, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-634] was closed: https://github.com/doctrine/doctrine2/pull/634
Author
Owner

@doctrinebot commented on GitHub (Jan 2, 2014):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Jan 2, 2014): Issue was closed with resolution "Invalid"
Author
Owner

@doctrinebot commented on GitHub (Jan 2, 2014):

Comment created by @beberlei:

This PR was superseded.

@doctrinebot commented on GitHub (Jan 2, 2014): Comment created by @beberlei: This PR was superseded.
Author
Owner

@doctrinebot commented on GitHub (Dec 28, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-634] was assigned:
https://github.com/doctrine/dbal/pull/634

@doctrinebot commented on GitHub (Dec 28, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-634] was assigned: https://github.com/doctrine/dbal/pull/634
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2980