Home Documentation Download Pricing Buy Now

[Answered] Model extends a abstract model, does not get parsed

0 votes

So my entity looks like this

abstract class AbstractBar
{

    /**
     * @var bool
     * @ORM\Column(name="verified", type="boolean")
     */
    protected $verified = false;

}


class Foo extends AbstractBar
{

   /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     * @ORM\Column(name="name", type="string", nullable=true)
     */
    private $name;

}

Now the field "verified" from the abstract class does not gets into the model viewer, the model viewer only shows the "id" and "name"

asked Mar 2, 2016 in Solved by lsv (120 points)
recategorized May 28, 2016 by ludek.vodicka

Hi, it's because there are no @Entity and @Inheritance settings. Skipper can import only settings defined through @ORM annotations

Please log in or register to answer this question.

...