mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 09:23:20 +02:00
[PR #5809] Verify embeddables do not define associations #9734
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/5809
State: closed
Merged: No
If I define an association on an embeddable, the following happens:
There are two ways to solve this problem: invalidate the schema, or add associations of the embeddable.
Personally I would find it intuitive if the associations work. Currently we've placed a workaround, but we'd prefer adding the association mapping in the embeddable.
According to #4291, Doctrine consciously does not support associations in embeddables. That is why I opted for stricter validation. That way the error would have at least been found sooner.