Hi, I'm studying mongodb using symfony2. I have a doubt.

Is it possible to limit the number of referenced documents in a query?

If I have two documents, Pippo and Pluto, Pippo is my forst document and I 
have a variable $plutos referencemany connecting with Pluto.

When I get Pippo in a query, to get all Pluto I need to do 
$pippo->getPlutos(). 
If I have 100 Pluto referenced with Pippo, is there the way to get just the 
first 10 instead of all 100? 

I know, I can use a loop and print just what I need, but I think it is not 
a good way to work.

Any suggestion?

Thanks 
Mario

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to