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