У меня есть класс:
Код: Выделить всё
class Account extends ActiveRecord {
...
//Поле БД
public $baned_at;
//Я добавил свойство
public $baned_check;
}
Код: Выделить всё
$model = Account::find();
Т.е. не присваиванием:
Код: Выделить всё
$model = Account::find();
$model->baned_check = is_null($model->baned_at);
Спасибо!