/** * @return \yii\db\ActiveQuery */ public function getPlantillas() { return $this->hasOne(PaginasPlantilla::className(), ['id' => 'plantilla']); }