Doctrine table class inheritance when one subclass has no extra attributes

前端 未结 5 1558
情歌与酒
情歌与酒 2021-02-13 02:31

I\'m having a problem with my mapping. I can\'t get it to work. I have an abstract base class like so:

/**
 * @Entity
 * @Table(name=\"actions\")
 * @Inheritance         


        
5条回答
  •  礼貌的吻别
    2021-02-13 03:09

    I think you do not have to create manually the table in your database.

    I have pretty much the same structure an I let Doctrine (2.3) do the job. You have to put @Entity et @Table on each subclasses though. The error Invalid parameter number: number of bound variables does not match number of tokens may not be related. It could be a cache problem, have you tried flushing it?

提交回复
热议问题