|
@@ -8,6 +8,7 @@ use Yii;
|
|
|
* This is the model class for table "Obra".
|
|
|
*
|
|
|
* @property string $id
|
|
|
+ * @property string $clave
|
|
|
* @property string $nombre
|
|
|
* @property string $fechaInicio
|
|
|
* @property string $fechaFinal
|
|
@@ -35,7 +36,7 @@ class Obra extends ModeloBase
|
|
|
[['id', 'nombre', 'fechaInicio','fechaFinal'], 'required'],
|
|
|
[['fechaInicio','fechaFinal','creado', 'modificado', 'eliminado'], 'safe'],
|
|
|
[['id'], 'string', 'max' => 36],
|
|
|
- [['nombre', 'descripcion'], 'string', 'max' => 100],
|
|
|
+ [['nombre', 'descripcion','clave'], 'string', 'max' => 100],
|
|
|
[['id'], 'unique'],
|
|
|
];
|
|
|
}
|
|
@@ -47,6 +48,7 @@ class Obra extends ModeloBase
|
|
|
{
|
|
|
return [
|
|
|
'id' => 'ID',
|
|
|
+ 'clave'=>'Clave',
|
|
|
'nombre' => 'Nombre',
|
|
|
'fechaInicio' => 'Fecha Inicio',
|
|
|
'fechaFinal' => 'Fecha Final',
|