__('Is_use 1'), '0' => __('Is_use 0')]; } public function getIsUseTextAttr($value, $data) { $value = $value ? $value : (isset($data['is_use']) ? $data['is_use'] : ''); $list = $this->getIsUseList(); return isset($list[$value]) ? $list[$value] : ''; } public function eggjackpot() { return $this->belongsTo('app\admin\model\egg\Jackpot', 'Jackpot_id', 'id', [], 'LEFT')->setEagerlyType(0); } }