From 79a04b295fd020164a41ad001fe389124f861fe5 Mon Sep 17 00:00:00 2001 From: Michael Moravec Date: Tue, 31 Jul 2012 16:30:27 +0200 Subject: [PATCH] [DDC-1961] Fixed parameter type support in Parameter --- lib/Doctrine/ORM/Query/Parameter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Query/Parameter.php b/lib/Doctrine/ORM/Query/Parameter.php index 659386665..57813cb63 100644 --- a/lib/Doctrine/ORM/Query/Parameter.php +++ b/lib/Doctrine/ORM/Query/Parameter.php @@ -54,7 +54,7 @@ class Parameter { $this->name = trim($name, ':'); - $this->setValue($value); + $this->setValue($value, $type); } /** @@ -98,4 +98,4 @@ class Parameter $this->value = $value; $this->type = $type ?: ParameterTypeInferer::inferType($value); } -} \ No newline at end of file +}