Skip to content

Commit

Permalink
Add support for array nested types
Browse files Browse the repository at this point in the history
Conflicts:
	lib/Doctrine/ORM/Query/ParameterTypeInferer.php
  • Loading branch information
sandvige authored and LordWeedlle committed Apr 12, 2017
1 parent 9912db8 commit b45d3f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Doctrine/ORM/Query/ParameterTypeInferer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b45d3f6

Please sign in to comment.