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