idAsIndex should be true with a smallint or bigint id field.

This commit is contained in:
Simon Terrien 2013-03-29 10:20:11 +01:00
parent 282a9c221b
commit 673fd9bc27
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class EntityChoiceList extends ObjectChoiceList
$this->idField = $identifier[0];
$this->idAsValue = true;
if ('integer' === $this->classMetadata->getTypeOfField($this->idField)) {
if (in_array($this->classMetadata->getTypeOfField($this->idField), array('integer', 'smallint', 'bigint'))) {
$this->idAsIndex = true;
}
}