/**
  * @return \yii\db\ActiveQuery
  */
 public function getSageSubcategorias()
 {
     return $this->hasMany(SageSubcategoria::className(), ['id_categoria' => 'id']);
 }
 public function getIdSubcategoria2()
 {
     return $this->hasOne(SageSubcategoria::className(), ['id' => 'id_subcategoria2']);
 }