Skip to content

Commit

Permalink
#24 se ve la descripcion del departamento y no el ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirandarodz committed Oct 11, 2019
1 parent 1365f38 commit 7c85292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions protected/models/Asignaturas.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function relations()
// class name for the relations automatically generated below.
return array(
'perteneceACarrera'=>array(self::BELONGS_TO, 'Carreras', 'carrera_id'),
'perteneceADepartamento'=>array(self::BELONGS_TO, 'Departamentos', 'departamento_id'),
);
}

Expand Down
5 changes: 4 additions & 1 deletion protected/views/asignaturas/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@
'carrera_id',
'nivel',
'comision',
'departamento_id',
array(
'header'=>'Departamento',
'name'=>'perteneceADepartamento.descripcion',
),
array(
'class'=>'CButtonColumn',
),
Expand Down

0 comments on commit 7c85292

Please sign in to comment.