You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to integrate the data mapper into yii2 and i have the following error
[Semantical Error] The annotation "@HireVoice\Neo4j\Annotation\Entity" in class common\models\neo4j\AppointmentType does not exist, or could not be auto-loaded.
I have declared the model as below:
_<?php
namespace common\models\neo4j;
use Yii;
use common\models\neo4j\BaseModel;
use HireVoice\Neo4j\Annotation as OGM;
use Doctrine\Common\Collections\ArrayCollection;
/**
The class for AppointmentType
@ogm\Entity(labels="AppointmentType") /
class AppointmentType extends BaseModel
{
/*
I am trying to integrate the data mapper into yii2 and i have the following error
[Semantical Error] The annotation "@HireVoice\Neo4j\Annotation\Entity" in class common\models\neo4j\AppointmentType does not exist, or could not be auto-loaded.
I have declared the model as below:
_<?php
namespace common\models\neo4j;
use Yii;
use common\models\neo4j\BaseModel;
use HireVoice\Neo4j\Annotation as OGM;
use Doctrine\Common\Collections\ArrayCollection;
/**
The class for AppointmentType
@ogm\Entity(labels="AppointmentType")
/
class AppointmentType extends BaseModel
{
/*
*/
protected $id;
/**
*/
public $title;
/**
*/
public function getId()
{
return $this->id;
}
}_
What i am doing wrong
The text was updated successfully, but these errors were encountered: