Skip to content

Commit

Permalink
[DDC-1961] Fixed parameter type support in Parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Majkl578 committed Jul 31, 2012
1 parent 992b51e commit 3b3d762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Query/Parameter.php
Expand Up @@ -54,7 +54,7 @@ public function __construct($name, $value, $type = null)
{
$this->name = trim($name, ':');

$this->setValue($value);
$this->setValue($value, $type);
}

/**
Expand Down Expand Up @@ -98,4 +98,4 @@ public function setValue($value, $type = null)
$this->value = $value;
$this->type = $type ?: ParameterTypeInferer::inferType($value);
}
}
}

0 comments on commit 3b3d762

Please sign in to comment.