add 'guid' to list of exception to filter out

This commit is contained in:
Massimiliano Arione 2016-02-03 15:31:21 +01:00 committed by Fabien Potencier
parent a842eda0ec
commit 0de86ff282

View File

@ -93,6 +93,13 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface
$values = array_values(array_filter($values, function ($v) {
return (string) $v === (string) (int) $v;
}));
} elseif ('guid' === $metadata->getTypeOfField($identifier)) {
$parameterType = Connection::PARAM_STR_ARRAY;
// Like above, but we just filter out empty strings.
$values = array_values(array_filter($values, function ($v) {
return (string) $v !== '';
}));
} else {
$parameterType = Connection::PARAM_STR_ARRAY;
}