From 4fc97fe1b86caeeb0ba5bd43006d22337dc8ff22 Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Thu, 12 Apr 2007 16:45:13 +0000 Subject: [PATCH] Added simple COUNT() example --- ...uery Language) - SELECT queries - Aggregate values.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 10e2c0ded..2880654a5 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 @@ -1,3 +1,9 @@ select('u.*, COUNT(p.id) num_posts') + ->from('User u, u.Posts p') + ->where('u.id = ?', 1) ?>