Questions tagged [neo4j-php-ogm]

The Neo4j-PHP-OGM library is a pure PHP library that can persist (annotated) domain objects using Neo4j.

The Neo4j-PHP-OGM library is a pure PHP library that can persist (annotated) domain objects using Neo4j. It uses Cypher statements to handle those operations in Neo4j and Doctrine-like annotations to create node and relationship entities. The library supports tracking changes to minimize necessary updates and transitive persistence (reading and updating neighborhoods of an object). The connection to Neo4j is handled by a driver layer, which can use the binary protocol or HTTP APi's.

16 questions
8
votes
2 answers

Call to a member function isCollection() on null

I, using the Graphaware Neo4j-php-OGM. I would like to access the 2nd level relationship. I can't seen to get it to work. What am i doing wrong? I'm trying to execute the following: public function allowToContinue($userUuid, $permissionUuid) { …
djkevino
  • 264
  • 2
  • 16
2
votes
0 answers

Building relationship entity with Neo4J PHP OGM EntityManager

I am trying to build an entity object for my relationship in Neo4j database with GraphAware Neo4j PHP OGM library using this simple method: public function getRelationshipEntity($entityId) { $repo = $this->entityManager->getRepository(…
ADi3ek
  • 645
  • 6
  • 18
2
votes
0 answers

Maximum size of Parameter Object in Query?

I am using the graphaware php client for neo4j. When running a query with a "large" parameter object (about 200 lines in pretty print, field values are 30 characters max), it freezes. The $queryparams object looks like { "data": { …
tscherg
  • 1,032
  • 8
  • 22
2
votes
2 answers

graphaware/neo4j-php-ogm event listeners

I recently created a new symfony project (3.1) with a dependency on graphaware/neo4j-php-ogm and neo4j/neo4j-bundle to manage my database. Then I created a new Entity class named User with properties (login, password, ...) and I want to…
Sobraz
  • 93
  • 1
  • 4
2
votes
1 answer

Neo4j find only 10 movies

I found today in slack neo4j that it is possible to use ogm in php. https://github.com/graphaware/neo4j-php-ogm I use the examples demonstrated in test folder with person and movie table. But I want to have only 10 movies, but I now have all…
1
vote
2 answers

return the value uuid in the nodes created in Neo4j ogm

I'm working Neo4j from PHP. To generate the uuid field in the nodes I am using: neo4j-uuid. I also use: graphaware/neo4j-php-ogm, when I create a node, I do not return the value assigned to the UUID field, I have to make a new query to get that…
Jaime Roman
  • 749
  • 1
  • 11
  • 26
1
vote
1 answer

php-neo4j-ogm EntityManager GetRepository->FindAll() retuns empty objects

I am struggling to read data from a neo4j db. i use the entitymanager provided in the neo4j-php-ogm library. $employeesRepository = $this->entityManager ->getRepository(Employee::class); $employees =…
1
vote
1 answer

How to access properties of node over 2 relations with NEO4J-PHP-OGM

I cant get my head around how to access properties over 2 relationships with the neo4j-php-ogm library. Say for example I have a "user" node, which connects to MANY "resource" nodes, which in return are each connected to a fixed number of predefined…
Mfbaer
  • 465
  • 3
  • 15
1
vote
1 answer

Only single properties can be saved

I have the following "User" class:
user2064000
1
vote
1 answer

Neo4j PHP OGM with Authentication

I was wondering: what is the best practice to create a connection to Neo4j through the neo4j-php-ogm library if I am using username and password authentication? In the documentation it states that connections are created by following: use…
Mfbaer
  • 465
  • 3
  • 15
1
vote
1 answer

neo4j ogm returns not all relationships

This is my omg class : /** * @OGM\Node(label="Personne") */ class Personne { /** * @OGM\GraphId() */ protected $id; /** * @OGM\Property(type="string") */ protected $nom; /** *…
0
votes
0 answers

lost connection with neo4j after a long time

I am using version Neo4j 3.5.5 (Community) and the graphaware / neo4j-php-client and graphaware / neo4j-php-ogm libraries and everything works wonders. I am also using Supervisord (3.2.4), because I need to run a RabbitMQ consumer (3.6.16) using the…
Jaime Roman
  • 749
  • 1
  • 11
  • 26
0
votes
0 answers

How to use lifecycle on Neo4j

I need to save the date of creation and update of all the nodes of my graph. I do not know how to use the lifecycle. Or is that I have to do the process manually?
Jaime Roman
  • 749
  • 1
  • 11
  • 26
0
votes
2 answers

Symfony 4 Guard Neo4j OGM

Im having some trouble getting the Neo4j OGM/Symfony bundle to work with the Symfony Guard. I have added users to the database successfully. unfortunately it doesn't want to sign in and I get the following…
djkevino
  • 264
  • 2
  • 16
0
votes
0 answers

create an index from metada with GraphAware \ Neo4j \ OGM \ Annotations

I'm using GraphAware\Neo4j\OGM\ for the management of nodes and relationships in Neo4j, to create the nodes I use the following metadata: use GraphAware\Neo4j\OGM\Annotations as OGM; /** * * @OGM\Node(label="Contact") */ …
Jaime Roman
  • 749
  • 1
  • 11
  • 26
1
2