1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/manual/docs/Working with objects - Component overview - Query - LIMIT and OFFSET - limiting the query results.php
2007-04-13 21:49:11 +00:00

15 lines
279 B
PHP

<code type="php">
// find the first ten users and associated emails
$q = new Doctrine_Query();
$coll = $q->from('User u LEFT JOIN u.Email e')->limit(10);
// find the first ten users starting from the user number 5
$coll = $q->from('User u')->limit(10)->offset(5);
</code>