class Pojazd extends Model
{
// This defines the available options for the "cena_typ" dropdown field
public function getCenaTypOptions()
{
return [
'v' => 'value 1',
'm' => 'value 2',
];
}
}
@mkInternet It looks like something might be off in your setup, since this should be fairly straightforward. What value is actually being saved? Are you modifying it in any way before saving it to the database (beforeSave)? What value do you see in the database for that record?