我有两个表,其中一个表包含复合主键,另一个表包含引用该复合主键的外键。
此解决方案的问题是,doctrine 2不支持它,symfony元数据构建器会抛出以下错误:
It is not possible to map entity 'First' with a composite primary key as part of the primary key of another entity 'Second#keyname'
我不想更改数据库结构,因为它已经填满了数据库,生产副本,我不想对结构进行任何更改并生成错误发生的不必要的可能性。
我该如何处理?