Validate that a ManyToOne is not used as single field in an id.
Author: stofCreated Apr 7, 2026Updated Aug 28, 2026
Feature Request
What
when using a ManyToOne relation as the id of the entity without making it part of a composite key, this effectively turns the relation into a OneToOne.
Why
This got reported on Slack by someone forgetting to put the Id attribute on the other field expected to be part of their composite key.
How
The schema validator should report an error in this case to make debugging easier.
Source: doctrine/orm