8000 idAsIndex should be true with a smallint or bigint id field. · symfony/symfony@673fd9b · GitHub
[go: up one dir, main page]

Skip to content

Commit 673fd9b

Browse files
committed
idAsIndex should be true with a smallint or bigint id field.
1 parent 282a9c2 commit 673fd9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function __construct(ObjectManager $manager, $class, $labelPath = null, E
111111
$this->idField = $identifier[0];
112112
$this->idAsValue = true;
113113

114-
if ('integer' === $this->classMetadata->getTypeOfField($this->idField)) {
114+
if (in_array($this->classMetadata->getTypeOfField($this->idField), array('integer', 'smallint', 'bigint'))) {
115115
$this->idAsIndex = true;
116116
}
117117
}

0 commit comments

Comments
 (0)
0