Doctrine composite primary key as part of the primary key of another entity
问题 I have specific situation where composite primary key of one entity is part of the primary key of another entity. This is case of specialization, but it doesn't matter now. I use Doctrine to generate entities from database, but Doctrine doesn't support composite foreign key as primary key: It is not possible to map entity 'XXXXX' with a composite primary key as part of the primary key of another entity 'YYYYYY#id_xxxxx' Does anyone know solution for this situation? It can be Doctrine solution