|
@@ -57,7 +57,8 @@ class EntitiesToArrayTransformer implements DataTransformerInterface
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
foreach ($collection as $entity) {
|
|
foreach ($collection as $entity) {
|
|
- $array[] = current($this->choiceList->getIdentifierValues($entity));
|
|
|
|
|
|
+ $value = current($this->choiceList->getIdentifierValues($entity));
|
|
|
|
+ $array[] = is_numeric($value) ? (int) $value : $value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|