From 911b58763b0dd8cb828b3a8db0c58b8141adabe3 Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Thu, 12 Apr 2007 16:47:56 +0000 Subject: [PATCH] Fixed some errors in syntax. --- ...rine Query Language) - SELECT queries - Aggregate values.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manual/codes/DQL (Doctrine Query Language) - SELECT queries - Aggregate values.php b/manual/codes/DQL (Doctrine Query Language) - SELECT queries - Aggregate values.php index 2880654a5..da23897fc 100644 --- a/manual/codes/DQL (Doctrine Query Language) - SELECT queries - Aggregate values.php +++ b/manual/codes/DQL (Doctrine Query Language) - SELECT queries - Aggregate values.php @@ -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(); ?>