从postgres DB在Doctrine 2中生成映射

thu*_*der 5 orm doctrine zend-framework2

我正在使用Doctrine中的ORM从Postgres DB生成xml文件.我有复合主键的问题.

我有三个测试表:payment_plan,system_string,payment_plan_option.

表:

payment_plan:
   id                PK
   name_string_id    PK   FK  (system_string.id)


system_string:
   id                PK
   value         
   language_id   

payment_plan_option:
   id                PK
   payment_plan_id   PK     FK (payment_plan.id)
   price
Run Code Online (Sandbox Code Playgroud)

当我为表payment_planpayment_plan_option生成XML时, 一切正常.

当我为表生成payment_plansystem_string时,我收到错误:

[Doctrine\ORM\Mapping\MappingException]                                             
Single id is not allowed on composite primary key in entity Api\Entity\PaymentPlan
Run Code Online (Sandbox Code Playgroud)

我已经尝试在payment_plan中添加一些字段,所以它看起来像payment_plan_option但没有效果.