lphuberdeau / Neo4j-PHP-OGM

A doctrine2 style library to access neo4j graphs
156 stars 45 forks source link

Bug with annotations #109

Open petrosd7 opened 7 years ago

petrosd7 commented 7 years ago

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;

/**

What i am doing wrong

lphuberdeau commented 7 years ago

We use Doctrine annotations. Perhaps Yii2 uses something different or initializes it in an other way.

I have never worked with Yii2.