I'm trying to skip and limit results, but I don't even get it to limit the results.
here's my code
$fooQueryBuilder = $this->mongo->getManager()->createQueryBuilder('CustomCoreBundle:Foo');
so i found out the answer myself
it is working !
and i learned:
when you count() a cursor, no matter what query, it returns the amount of all entities in database.
so my check to count the cursor to see if the limit is working was simply wrong