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