mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Validate Embeddables in SchemaValidator #6418
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?
Originally created by @beberlei on GitHub (Mar 2, 2020).
Feature Request
Summary
The schema validator doesn't currently validate embeddables, which is why you can put associations on embeddables but they are not working anyways and nothing happens. This should be validated and add an error in
SchemaValidator::validateMapping().@beberlei commented on GitHub (Sep 25, 2020):
You can check for
ClassMetadata::$isEmbeddable" and then for countClassMedatata::$associationMappings` being empty to be valid.