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