__('Money'), 'score' => __('Score')]; } public function getCurrencyTypeTextAttr($value, $data) { $value = $value ? $value : (isset($data['currency_type']) ? $data['currency_type'] : ''); $list = $this->getCurrencyTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function user() { return $this->belongsTo('app\admin\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0); } }