I am trying to use the Inheritance Type in Doctrine, but when I create the database, it shows this error message:
[Doctrine\Common\Annotations\AnnotationException]
[Semantical Error] The annotation "@InheritanceType" in class iMed\GestInfo
rmatiqueBundle\Entity\MaterielInformatique was never imported. Did you mayb
e forget to add a "use" statement for this annotation?
Parent class.
namespace iMed\GestInformatiqueBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
class MaterielInformatique
{
private $id;
}
It seems I need to add a line to import the class, but I don't know what the class is, does anyone have an idea to solve this problem?
source
share