/** * @return \yii\db\ActiveQuery */ public function getSections() { return $this->hasMany(Section::className(), ['level_id' => 'id']); }