/** * @return \yii\db\ActiveQuery */ public function getIdCarpeta() { return $this->hasOne(Carpeta::className(), ['id' => 'id_carpeta']); }
/** * @return \yii\db\ActiveQuery */ public function getCarpetas() { return $this->hasMany(Carpeta::className(), ['id_perfil' => 'id']); }