how to model inheritance in doctrine2 with yaml?

前端 未结 3 385
一整个雨季
一整个雨季 2021-01-19 14:54

How to declare doctrine2 inheritance the yaml way?

I don\'t find any code snippets, examples or cookbook articles about this in the doctrine documentation.

W

3条回答
  •  后悔当初
    2021-01-19 15:39

    It exist three main strategies to manage inheritance in relational database.

    • Single table inheritance (STI) (Martin fowler link)
    • Concrete table inheritance (Martin fowler link)
    • Class per table inheritance (Martin fowler link)

    You can find how create each of this strategies on the Symfony website in the YAML format with Doctrine 2 : YAML Inheritance with Doctrine

提交回复
热议问题