Editorial question140.2K views4,401 votes0 answers4,217 following
AI-generatedComposite primary key definition via attributes after upgrading to Doctrine ORM 3.0
When migrating a project to Doctrine ORM 3.0, we aim to define a composite primary key that includes fields from an embeddable class using PHP 8 attributes. The current documentation states that the #[ORM\Id] attribute must be placed on scalar fields of the owning entity and does not permit identifier mapping inside embeddable classes. We need to clarify whe