2006-07-23 21:08:06 +00:00
|
|
|
<?php
|
|
|
|
|
2006-12-03 23:40:32 +00:00
|
|
|
// find the first ten users and associated emails
|
2006-07-23 21:08:06 +00:00
|
|
|
|
2006-12-03 23:40:32 +00:00
|
|
|
$q = new Doctrine_Query();
|
|
|
|
|
|
|
|
$coll = $q->from('User u LEFT JOIN u.Email e')->limit(10);
|
2006-07-23 21:08:06 +00:00
|
|
|
|
|
|
|
// find the first ten users starting from the user number 5
|
|
|
|
|
2006-12-03 23:40:32 +00:00
|
|
|
$coll = $q->from('User u')->limit(10)->offset(5);
|
2006-07-23 21:08:06 +00:00
|
|
|
|
|
|
|
?>
|