diff --git a/lib/Doctrine/ORM/Query/ParameterTypeInferer.php b/lib/Doctrine/ORM/Query/ParameterTypeInferer.php index a12a559a730..763743d9064 100644 --- a/lib/Doctrine/ORM/Query/ParameterTypeInferer.php +++ b/lib/Doctrine/ORM/Query/ParameterTypeInferer.php @@ -58,9 +58,7 @@ public static function inferType($value) } if (is_array($value)) { - return is_integer(current($value)) - ? Connection::PARAM_INT_ARRAY - : Connection::PARAM_STR_ARRAY; + return '[' . static::inferType(current($value)) . ']'; } return \PDO::PARAM_STR;