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()); } /**