[PR #5962] Allow manyToOne associations to be embedded #9801

Open
opened 2026-01-22 16:05:27 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: No


We've recently faced, that embeddables are not allowed to have an oneToMany relation. My investigations basically finished that it could be solved by several lince of code, allowing inlining the embeddable's relations into the parent entity.

I'm not sure that I've patched all the placed and did it properly, so I'm ready to any improvements.

Currently we have to override the metadata factory to use patched class metadata class

Fix #4291

**Original Pull Request:** https://github.com/doctrine/orm/pull/5962 **State:** closed **Merged:** No --- We've recently faced, that embeddables are not allowed to have an oneToMany relation. My investigations basically finished that it could be solved by several lince of code, allowing inlining the embeddable's relations into the parent entity. I'm not sure that I've patched all the placed and did it properly, so I'm ready to any improvements. Currently we have to override the metadata factory to use patched class metadata class Fix #4291
admin added the pull-request label 2026-01-22 16:05:27 +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#9801