Commit 911b5876 authored by Jonathan.Wage's avatar Jonathan.Wage

Fixed some errors in syntax.

parent 4fc97fe1
...@@ -6,4 +6,6 @@ $query = new Doctrine_Query(); ...@@ -6,4 +6,6 @@ $query = new Doctrine_Query();
$query->select('u.*, COUNT(p.id) num_posts') $query->select('u.*, COUNT(p.id) num_posts')
->from('User u, u.Posts p') ->from('User u, u.Posts p')
->where('u.id = ?', 1) ->where('u.id = ?', 1)
->groupby('u.id')
->execute();
?> ?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment