255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Name', ]; } /** * @return \yii\db\ActiveQuery */ public function getSkills() { return $this->hasMany(Skill::className(), ['category' => 'id']); } public static function getAll() { return self::find()->all(); } }