Doctrine orm HireVoice\Neo4j注释错误

Doctrine orm HireVoice\Neo4j注释错误,doctrine-orm,neo4j,Doctrine Orm,Neo4j,我得到这个错误: [语义错误]属性实体\站点::$id中的批注“@HireVoice\Neo4j\annotation”不存在,或无法自动加载 这是Entity/Site.php: namespace Entity; use HireVoice\Neo4j\Annotation as OGM; use Doctrine\Common\Collections\ArrayCollection; /** * Class Site * @OGM\Enti

我得到这个错误:

[语义错误]属性实体\站点::$id中的批注“@HireVoice\Neo4j\annotation”不存在,或无法自动加载

这是Entity/Site.php:

namespace Entity; use HireVoice\Neo4j\Annotation as OGM; use Doctrine\Common\Collections\ArrayCollection; /** * Class Site * @OGM\Entity(repositoryClass="Repository\SiteRepository") */ class Site { /** * @OGM/Auto */ protected $id; /** * @OGM/Property */ protected $name; /** * @OGM/Property * @OGM/Index */ protected $domain; /** * @OGM/Property */ protected $url; /** * @OGM/Property * @OGM/Index */ protected $created; public function setName($name) { $this->name = $name; } public function setDomain($domain) { $this->domain = $domain; } public function setUrl($url) { $this->url = $url; } public function setCreated($created) { $this->created = $created; } public function getName() { return $this->name; } public function getDomain() { return $this->domain; } public function getUrl() { return $this->url; } public function getCreated() { return $this->created; } } 名称空间实体; 使用HireVoice\Neo4j\注释作为OGM; 使用条令\Common\Collections\ArrayCollection; /** *课堂现场 *@OGM\Entity(repositoryClass=“Repository\SiteRepository”) */ 课堂现场{ /** *@OGM/Auto */ 受保护的$id; /** *@OGM/Property */ 受保护的$名称; /** *@OGM/Property *@OGM/Index */ 受保护的$域; /** *@OGM/Property */ 受保护的$url; /** *@OGM/Property *@OGM/Index */ 创建受保护的美元; 公共函数setName($name){ $this->name=$name; } 公共函数setDomain($domain){ $this->domain=$domain; } 公共函数setUrl($url){ $this->url=$url; } 公共函数setCreated($created){ $this->created=$created; } 公共函数getName(){ 返回$this->name; } 公共函数getDomain(){ 返回$this->domain; } 公共函数getUrl(){ 返回$this->url; } 公共函数getCreated(){ 返回$this->created; } } 这是Repository/SiteRepository.php:

namespace Repository; use HireVoice\Neo4j\Repository as BaseRepository; class SiteRepository extends BaseRepository { } 名称空间存储库; 使用HireVoice\Neo4j\Repository作为BaseRepository; 类SiteRepository扩展了BaseRepository{ }
哦,翻页A。刚刚意识到@OGM/需要更改为@OGM\