idAsIndex should be true with a smallint or bigint id field.
This commit is contained in:
parent
282a9c221b
commit
673fd9bc27
@ -111,7 +111,7 @@ class EntityChoiceList extends ObjectChoiceList
|
|||||||
$this->idField = $identifier[0];
|
$this->idField = $identifier[0];
|
||||||
$this->idAsValue = true;
|
$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;
|
$this->idAsIndex = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user