I read here
https://github.com/yiisoft/yii2/issues/6797
it's possible override a field, to transfer it into integer
i want force ID to number
i try to add into model this function:
public function fields()
{
$fields = parent::fields();
$fields = [
'ID' => 'integer',
'CODICE_SPEEDY',
'DESCRIZIONE',
'DESCRIZIONE_COMPLETATO',
];
return $fields;
}
but yii2 crash: Getting unknown property: app\models\Interventi::integer
Can you help me?