I am working on a project in Symfony2.2 and MongoDB.
Currently I can retrieve all the Objects from my Database and traverse them to get the desired object.
$dm = $this->get('doctrine_mongodb')->getManager();
$users = $dm->getRepository('Database:User')->findAll();
And then loop them in order to get the next and previous object.
I was wondering if there was a easier and efficient way to find the next and previous object in ODM?
Thanks.