i´m trying to skip and limit results but i dont even get it to work to limit results.
heres 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