Nette extension Neo4j and issue vithe nette 2.4

3 months ago

izytech_thomas
Member | 8
+
0
-

Hi,

I am trying to get Neo4jExtension to work with nette 2.4, there is som issues with

$builder->addDefinition('entityManager')
        ->setClass('\HireVoice\Neo4j\EntityManager')
        ->setFactory('@container::getService', array($this->prefix('entityManager')));
Class or interface 'Nette\DI\object' not found. Is return type of Nette\DI\Container::getService() used in service 'entityManager' correct? search►

Can anyone give me an hint what to do?

Best regards
Thomas

3 months ago

CZechBoY
Member | 2210
+
+1
-

Create issue on Github :-)

3 months ago

izytech_thomas
Member | 8
+
0
-

Did create an issue there a short while ago. last update was 4 years ago so i was hoping for some useful hints here.

2 months ago

bazo
Member | 625
+
0
-

do you really expect someone to do something about it if the issue looks like this? https://github.com/…ion/issues/2

why should i waste my time if you couldn't make even the smallest effort to create a proper issue?

you could have already fixed that yourself in those 2months and sent a pull request…

12 days ago

izytech_thomas
Member | 8
+
0
-

Sorry about the no reply and lack of description on git hub I thougt it was kind of selfexplained. I have today started looking at this again and I will if its still needed post a more details issue.

10 days ago

izytech_thomas
Member | 8
+
0
-

Use of undefined constant _VENDOR_DIR_ – assumed ‘_VENDOR_DIR_’ search► skip error►

\Doctrine\Common\Annotations\AnnotationRegistry::registerFile(_VENDOR_DIR_ .'/hirevoice/neo4jphp-ogm/lib/HireVoice/Neo4j/Annotation/Auto.php');
        \Doctrine\Common\Annotations\AnnotationRegistry::registerFile(_VENDOR_DIR_ . '/hirevoice/neo4jphp-ogm/lib/HireVoice/Neo4j/Annotation/Entity.php');
        \Doctrine\Common\Annotations\AnnotationRegistry::registerFile(_VENDOR_DIR_ . '/hirevoice/neo4jphp-ogm/lib/HireVoice/Neo4j/Annotation/Index.php');
        \Doctrine\Common\Annotations\AnnotationRegistry::registerFile(_VENDOR_DIR_ . '/hirevoice/neo4jphp-ogm/lib/HireVoice/Neo4j/Annotation/ManyToMany.php');
        \Doctrine\Common\Annotations\AnnotationRegistry::registerFile(_VENDOR_DIR_ . '/hirevoice/neo4jphp-ogm/lib/HireVoice/Neo4j/Annotation/ManyToOne.php');
        \Doctrine\Common\Annotations\AnnotationRegistry::registerFile(_VENDOR_DIR_ . '/hirevoice/neo4jphp-ogm/lib/HireVoice/Neo4j/Annotation/Property.php');

I have been looking around for some time now I cant see any constan registerad anywahre name VENDOR_DIR. What is the right aproach to solve this? Hardcoding search path for feels really wrong.

Board footer

Terms and conditions