1
0
mirror of synced 2025-01-29 19:41:45 +03:00

MInor fix to syntax.

This commit is contained in:
Jonathan.Wage 2007-04-12 19:07:01 +00:00
parent cd8452aa8b
commit d82f539d8d

View File

@ -6,9 +6,9 @@ $query = new Doctrine_Query();
$query->select('u.*, COUNT(p.id) num_posts')
->from('User u, u.Posts p')
->where('u.id = ?', 1)
->groupby('u.id')
->execute();
->groupby('u.id');
echo $query->Posts[0]->num_posts . ' posts found';
$users = $query->execute();
echo $users->Posts[0]->num_posts . ' posts found';
?>