2006-07-23 21:08:06 +00:00
|
|
|
<?php
|
|
|
|
// find all groups
|
|
|
|
|
2006-12-03 20:05:09 +00:00
|
|
|
$coll = $q->from("FROM Group");
|
2006-07-23 21:08:06 +00:00
|
|
|
|
|
|
|
// find all users and user emails
|
|
|
|
|
2006-12-03 23:40:32 +00:00
|
|
|
$coll = $q->from("FROM User u LEFT JOIN u.Email e");
|
2006-08-17 09:42:18 +00:00
|
|
|
|
2006-12-03 20:05:09 +00:00
|
|
|
// find all users and user emails with only user name and
|
2006-08-17 09:42:18 +00:00
|
|
|
// age + email address loaded
|
|
|
|
|
2006-12-03 20:05:09 +00:00
|
|
|
$coll = $q->select('u.name, u.age, e.address')
|
|
|
|
->from('FROM User u')
|
|
|
|
->leftJoin('u.Email e')
|
|
|
|
->execute();
|
2006-08-17 09:42:18 +00:00
|
|
|
|
|
|
|
// find all users, user email and user phonenumbers
|
2006-07-23 21:08:06 +00:00
|
|
|
|
2006-12-03 20:05:09 +00:00
|
|
|
$coll = $q->from('FROM User u')
|
|
|
|
->leftJoin('u.Email e')
|
|
|
|
->leftJoin('u.Phonenumber p')
|
|
|
|
->execute();
|
2006-07-23 21:08:06 +00:00
|
|
|
?>
|