/**
  * @return \yii\db\ActiveQuery
  */
 public function getTrainings()
 {
     return $this->hasMany(Training::className(), ['category_id' => 'id'])->from(['t' => Training::tableName()]);
 }