From 400be2a3e68b6360ecdba04ec14cfc634bce4571 Mon Sep 17 00:00:00 2001 From: eXtreme Date: Wed, 7 Jul 2010 19:10:48 +0800 Subject: [PATCH] fixing codeblocks --- manual/en/dql-doctrine-query-language.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manual/en/dql-doctrine-query-language.txt b/manual/en/dql-doctrine-query-language.txt index 3e0a5cab5..e2d9e6cdb 100644 --- a/manual/en/dql-doctrine-query-language.txt +++ b/manual/en/dql-doctrine-query-language.txt @@ -188,11 +188,12 @@ With Nested Conditions in WHERE Clause: With COUNT DISTINCT: [php] - $query = $em->createQuery('SELECT COUNT(DISTINCT u.name) FROM CmsUser + $query = $em->createQuery('SELECT COUNT(DISTINCT u.name) FROM CmsUser'); $users = $query->getResult(); // array of ForumUser objects With Arithmetic Expression in WHERE clause: + [php] $query = $em->createQuery('SELECT u FROM CmsUser u WHERE ((u.id + 5000) * u.id + 3) < 10000000'); $users = $query->getResult(); // array of ForumUser objects