skills on main page api and admin
This commit is contained in:
1 parent
23773eff4e
commit
b9f919204c
27 files changed
+842
No files matched your search
@@ -58,4 +58,10 @@ class Skill extends \yii\db\ActiveRecord
|
||||
{
|
||||
return $this->hasOne(SkillCategory::class, ['id' => 'category_id']);
|
||||
}
|
||||
|
||||
public static function getNameById($id)
|
||||
{
|
||||
$model = self::find()->where(['id' => $id])->one();
|
||||
return $model ? $model->name : null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user