I created a doctrine annotation
namespace Fondative\GenBundle\Front\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* @Annotation
* @Target("PROPERTY")
*/
class ReferenceAnnotation extends Annotation {
}
use Fondative\GenBundle\Front\Annotation\ReferenceAnnotation ;
/**
* A Driver.
*
*
*
* @ORM\Entity
*
*/
class Driver {
/*
* @Reference
*/
private $name;
I get this exception
[Semantical Error] The annotation "@Reference" in property Fondative\TestBundle\Entity\Driver::$name was never imported.
use Fondative\GenBundle\Front\Annotation\ReferenceAnnotation as Reference;
– Matteo