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 movies.
This is my code in application :
$movies = $em->getRepository(Personne::class)->findAll();
Thanks already for responses.
Wow that's impressive, this library was released this morning. Thanks for already using it.
I assume you have a typo in your question and that the class passed to the entity manager should be a movie class.
So yes, this is possible to only return a subset of all the Movie nodes and even order them :
You can also order them if you want :
The documentation is also available here :
https://github.com/graphaware/neo4j-php-ogm/blob/1.0/docs/01-intro.md