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 +}