Multiple discrimination levels while using Doctrine2

前端 未结 2 1403
面向向阳花
面向向阳花 2021-01-13 04:35

I\'m using Doctrine2 to manage my model below: There\'s an abstract concept Content with a Composite pattern in Gallery, also an abstract concept <

相关标签:
2条回答
  • 2021-01-13 04:48

    I answer my question myself hoping it will help someone someday.

    I opened a bug report in github for doctrine2 with this question and the answer is pretty clear: This is not supported.

    UPDATED 2013/07/27

    I just tried this with Doctrine 2.3.4 and it works as expected. :D

    0 讨论(0)
  • 2021-01-13 05:13

    If they're all abstract I find it makes more sense to put DiscriminatorMap only in the top level entity.

    0 讨论(0)
提交回复
热议问题