Fixed some errors in syntax.
This commit is contained in:
parent
4fc97fe1b8
commit
911b58763b
@ -6,4 +6,6 @@ $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();
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user