From d060a48cb4311f0fb4297f2a2690ecc2fc9d1594 Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Thu, 14 Jan 2010 16:15:58 +0000 Subject: [PATCH] [2.0][DDC-249] Fixed issue that documentation refers QueryBuilder::select() supports array, but it was only restricted to strings. --- lib/Doctrine/ORM/Query/Expr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Query/Expr.php b/lib/Doctrine/ORM/Query/Expr.php index 60a2582ce..8da76129e 100644 --- a/lib/Doctrine/ORM/Query/Expr.php +++ b/lib/Doctrine/ORM/Query/Expr.php @@ -82,7 +82,7 @@ class Expr */ public function select($select = null) { - return new Expr\Select(func_get_args()); + return new Expr\Select(is_array($select) ? $select : func_get_args()); } /**