Doctrine2: OneToMany on mapped superclass

前端 未结 3 758
终归单人心
终归单人心 2020-12-19 01:08

My DB structure is as follows:

work:

  • CTI table Work
  • MappedSuperclass table AbstractImageWork which extends <
3条回答
  •  清酒与你
    2020-12-19 01:56

    In some cases, when you have such error when inherit from the class that is tagged as @ORM\MappedSuperclass, try to change your properties access level from private to protected

提交回复
热议问题