Skip to content

Commit 0b8edcb

Browse files
committed
add 'guid' to list of exception to filter out
See #14583 (comment)
1 parent a842eda commit 0b8edcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function getEntitiesByIds($identifier, array $values)
8585
// Guess type
8686
$entity = current($qb->getRootEntities());
8787
$metadata = $qb->getEntityManager()->getClassMetadata($entity);
88-
if (in_array($metadata->getTypeOfField($identifier), array('integer', 'bigint', 'smallint'))) {
88+
if (in_array($metadata->getTypeOfField($identifier), array('integer', 'bigint', 'smallint', 'guid'))) {
8989
$parameterType = Connection::PARAM_INT_ARRAY;
9090

9191
// Filter out non-integer values (e.g. ""). If we don't, some

0 commit comments

Comments
 (0)