SVN Alba r6159 - in prosistem/alba/trunk/alba: apps/principal/modules/default/actions lib/filter/base lib/form/base lib/model/map lib/model/om
Author: josx Date: 2009-05-04 23:15:35 -0300 (Mon, 04 May 2009) New Revision: 6159 Modified: prosistem/alba/trunk/alba/apps/principal/modules/default/actions/actions.class.php prosistem/alba/trunk/alba/lib/filter/base/BaseAlumnoFormFilter.class.php prosistem/alba/trunk/alba/lib/filter/base/BaseEstablecimientoFormFilter.class.php prosistem/alba/trunk/alba/lib/filter/base/BaseUsuarioFormFilter.class.php prosistem/alba/trunk/alba/lib/form/base/BaseAlumnoForm.class.php prosistem/alba/trunk/alba/lib/form/base/BaseEstablecimientoForm.class.php prosistem/alba/trunk/alba/lib/form/base/BaseUsuarioForm.class.php prosistem/alba/trunk/alba/lib/model/map/AlumnoMapBuilder.php prosistem/alba/trunk/alba/lib/model/map/EstablecimientoMapBuilder.php prosistem/alba/trunk/alba/lib/model/om/BaseAlumno.php prosistem/alba/trunk/alba/lib/model/om/BaseAlumnoPeer.php prosistem/alba/trunk/alba/lib/model/om/BaseEstablecimiento.php prosistem/alba/trunk/alba/lib/model/om/BaseEstablecimientoPeer.php Log: Agregando funcion en default para que no tire error 4 por no encontrar login Modified: prosistem/alba/trunk/alba/apps/principal/modules/default/actions/actions.class.php =================================================================== --- prosistem/alba/trunk/alba/apps/principal/modules/default/actions/actions.class.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/apps/principal/modules/default/actions/actions.class.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -13,4 +13,7 @@ public function executeIndex(sfWebRequest $request) { } + + public function executeLogin($request) { + } } Modified: prosistem/alba/trunk/alba/lib/filter/base/BaseAlumnoFormFilter.class.php =================================================================== --- prosistem/alba/trunk/alba/lib/filter/base/BaseAlumnoFormFilter.class.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/lib/filter/base/BaseAlumnoFormFilter.class.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -15,10 +15,12 @@ public function setup() { $this->setWidgets(array( + 'legajo_prefijo' => new sfWidgetFormFilterInput(), + 'legajo_numero' => new sfWidgetFormFilterInput(), 'nombre' => new sfWidgetFormFilterInput(), 'apellido_materno' => new sfWidgetFormFilterInput(), 'apellido' => new sfWidgetFormFilterInput(), - 'fecha_nacimiento' => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => false)), + 'fecha_nacimiento' => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => true)), 'direccion' => new sfWidgetFormFilterInput(), 'ciudad' => new sfWidgetFormFilterInput(), 'codigo_postal' => new sfWidgetFormFilterInput(), @@ -38,9 +40,12 @@ 'activo' => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))), 'fk_conceptobaja_id' => new sfWidgetFormPropelChoice(array('model' => 'Conceptobaja', 'add_empty' => true)), 'fk_pais_id' => new sfWidgetFormPropelChoice(array('model' => 'Pais', 'add_empty' => true)), + 'procedencia' => new sfWidgetFormFilterInput(), )); $this->setValidators(array( + 'legajo_prefijo' => new sfValidatorPass(array('required' => false)), + 'legajo_numero' => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))), 'nombre' => new sfValidatorPass(array('required' => false)), 'apellido_materno' => new sfValidatorPass(array('required' => false)), 'apellido' => new sfValidatorPass(array('required' => false)), @@ -64,6 +69,7 @@ 'activo' => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))), 'fk_conceptobaja_id' => new sfValidatorPropelChoice(array('required' => false, 'model' => 'Conceptobaja', 'column' => 'id')), 'fk_pais_id' => new sfValidatorPropelChoice(array('required' => false, 'model' => 'Pais', 'column' => 'id')), + 'procedencia' => new sfValidatorPass(array('required' => false)), )); $this->widgetSchema->setNameFormat('alumno_filters[%s]'); @@ -82,6 +88,8 @@ { return array( 'id' => 'Number', + 'legajo_prefijo' => 'Text', + 'legajo_numero' => 'Number', 'nombre' => 'Text', 'apellido_materno' => 'Text', 'apellido' => 'Text', @@ -105,6 +113,7 @@ 'activo' => 'Boolean', 'fk_conceptobaja_id' => 'ForeignKey', 'fk_pais_id' => 'ForeignKey', + 'procedencia' => 'Text', ); } } Modified: prosistem/alba/trunk/alba/lib/filter/base/BaseEstablecimientoFormFilter.class.php =================================================================== --- prosistem/alba/trunk/alba/lib/filter/base/BaseEstablecimientoFormFilter.class.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/lib/filter/base/BaseEstablecimientoFormFilter.class.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -17,6 +17,9 @@ $this->setWidgets(array( 'nombre' => new sfWidgetFormFilterInput(), 'descripcion' => new sfWidgetFormFilterInput(), + 'cuit' => new sfWidgetFormFilterInput(), + 'legajoprefijo' => new sfWidgetFormFilterInput(), + 'legajosiguiente' => new sfWidgetFormFilterInput(), 'fk_distritoescolar_id' => new sfWidgetFormPropelChoice(array('model' => 'Distritoescolar', 'add_empty' => true)), 'fk_organizacion_id' => new sfWidgetFormPropelChoice(array('model' => 'Organizacion', 'add_empty' => true)), 'fk_niveltipo_id' => new sfWidgetFormPropelChoice(array('model' => 'Niveltipo', 'add_empty' => true)), @@ -25,6 +28,9 @@ $this->setValidators(array( 'nombre' => new sfValidatorPass(array('required' => false)), 'descripcion' => new sfValidatorPass(array('required' => false)), + 'cuit' => new sfValidatorPass(array('required' => false)), + 'legajoprefijo' => new sfValidatorPass(array('required' => false)), + 'legajosiguiente' => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))), 'fk_distritoescolar_id' => new sfValidatorPropelChoice(array('required' => false, 'model' => 'Distritoescolar', 'column' => 'id')), 'fk_organizacion_id' => new sfValidatorPropelChoice(array('required' => false, 'model' => 'Organizacion', 'column' => 'id')), 'fk_niveltipo_id' => new sfValidatorPropelChoice(array('required' => false, 'model' => 'Niveltipo', 'column' => 'id')), @@ -48,6 +54,9 @@ 'id' => 'Number', 'nombre' => 'Text', 'descripcion' => 'Text', + 'cuit' => 'Text', + 'legajoprefijo' => 'Text', + 'legajosiguiente' => 'Number', 'fk_distritoescolar_id' => 'ForeignKey', 'fk_organizacion_id' => 'ForeignKey', 'fk_niveltipo_id' => 'ForeignKey', Modified: prosistem/alba/trunk/alba/lib/filter/base/BaseUsuarioFormFilter.class.php =================================================================== --- prosistem/alba/trunk/alba/lib/filter/base/BaseUsuarioFormFilter.class.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/lib/filter/base/BaseUsuarioFormFilter.class.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -26,8 +26,8 @@ 'email' => new sfWidgetFormFilterInput(), 'fk_establecimiento_id' => new sfWidgetFormPropelChoice(array('model' => 'Establecimiento', 'add_empty' => true)), 'borrado' => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))), + 'usuario_rol_list' => new sfWidgetFormPropelChoice(array('model' => 'Rol', 'add_empty' => true)), 'usuario_permiso_list' => new sfWidgetFormPropelChoice(array('model' => 'Permiso', 'add_empty' => true)), - 'usuario_rol_list' => new sfWidgetFormPropelChoice(array('model' => 'Rol', 'add_empty' => true)), )); $this->setValidators(array( @@ -42,8 +42,8 @@ 'email' => new sfValidatorPass(array('required' => false)), 'fk_establecimiento_id' => new sfValidatorPropelChoice(array('required' => false, 'model' => 'Establecimiento', 'column' => 'id')), 'borrado' => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))), + 'usuario_rol_list' => new sfValidatorPropelChoice(array('model' => 'Rol', 'required' => false)), 'usuario_permiso_list' => new sfValidatorPropelChoice(array('model' => 'Permiso', 'required' => false)), - 'usuario_rol_list' => new sfValidatorPropelChoice(array('model' => 'Rol', 'required' => false)), )); $this->widgetSchema->setNameFormat('usuario_filters[%s]'); @@ -53,7 +53,7 @@ parent::setup(); } - public function addUsuarioPermisoListColumnCriteria(Criteria $criteria, $field, $values) + public function addUsuarioRolListColumnCriteria(Criteria $criteria, $field, $values) { if (!is_array($values)) { @@ -65,20 +65,20 @@ return; } - $criteria->addJoin(UsuarioPermisoPeer::FK_USUARIO_ID, UsuarioPeer::ID); + $criteria->addJoin(UsuarioRolPeer::FK_USUARIO_ID, UsuarioPeer::ID); $value = array_pop($values); - $criterion = $criteria->getNewCriterion(UsuarioPermisoPeer::FK_PERMISO_ID, $value); + $criterion = $criteria->getNewCriterion(UsuarioRolPeer::FK_ROL_ID, $value); foreach ($values as $value) { - $criterion->addOr($criteria->getNewCriterion(UsuarioPermisoPeer::FK_PERMISO_ID, $value)); + $criterion->addOr($criteria->getNewCriterion(UsuarioRolPeer::FK_ROL_ID, $value)); } $criteria->add($criterion); } - public function addUsuarioRolListColumnCriteria(Criteria $criteria, $field, $values) + public function addUsuarioPermisoListColumnCriteria(Criteria $criteria, $field, $values) { if (!is_array($values)) { @@ -90,14 +90,14 @@ return; } - $criteria->addJoin(UsuarioRolPeer::FK_USUARIO_ID, UsuarioPeer::ID); + $criteria->addJoin(UsuarioPermisoPeer::FK_USUARIO_ID, UsuarioPeer::ID); $value = array_pop($values); - $criterion = $criteria->getNewCriterion(UsuarioRolPeer::FK_ROL_ID, $value); + $criterion = $criteria->getNewCriterion(UsuarioPermisoPeer::FK_PERMISO_ID, $value); foreach ($values as $value) { - $criterion->addOr($criteria->getNewCriterion(UsuarioRolPeer::FK_ROL_ID, $value)); + $criterion->addOr($criteria->getNewCriterion(UsuarioPermisoPeer::FK_PERMISO_ID, $value)); } $criteria->add($criterion); @@ -123,8 +123,8 @@ 'email' => 'Text', 'fk_establecimiento_id' => 'ForeignKey', 'borrado' => 'Boolean', + 'usuario_rol_list' => 'ManyKey', 'usuario_permiso_list' => 'ManyKey', - 'usuario_rol_list' => 'ManyKey', ); } } Modified: prosistem/alba/trunk/alba/lib/form/base/BaseAlumnoForm.class.php =================================================================== --- prosistem/alba/trunk/alba/lib/form/base/BaseAlumnoForm.class.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/lib/form/base/BaseAlumnoForm.class.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -14,6 +14,8 @@ { $this->setWidgets(array( 'id' => new sfWidgetFormInputHidden(), + 'legajo_prefijo' => new sfWidgetFormInput(), + 'legajo_numero' => new sfWidgetFormInput(), 'nombre' => new sfWidgetFormInput(), 'apellido_materno' => new sfWidgetFormInput(), 'apellido' => new sfWidgetFormInput(), @@ -37,33 +39,37 @@ 'activo' => new sfWidgetFormInputCheckbox(), 'fk_conceptobaja_id' => new sfWidgetFormPropelChoice(array('model' => 'Conceptobaja', 'add_empty' => true)), 'fk_pais_id' => new sfWidgetFormPropelChoice(array('model' => 'Pais', 'add_empty' => false)), + 'procedencia' => new sfWidgetFormInput(), )); $this->setValidators(array( 'id' => new sfValidatorPropelChoice(array('model' => 'Alumno', 'column' => 'id', 'required' => false)), + 'legajo_prefijo' => new sfValidatorString(array('max_length' => 10)), + 'legajo_numero' => new sfValidatorInteger(), 'nombre' => new sfValidatorString(array('max_length' => 128)), 'apellido_materno' => new sfValidatorString(array('max_length' => 128, 'required' => false)), 'apellido' => new sfValidatorString(array('max_length' => 128)), - 'fecha_nacimiento' => new sfValidatorDateTime(), - 'direccion' => new sfValidatorString(array('max_length' => 128)), - 'ciudad' => new sfValidatorString(array('max_length' => 128)), - 'codigo_postal' => new sfValidatorString(array('max_length' => 20)), + 'fecha_nacimiento' => new sfValidatorDateTime(array('required' => false)), + 'direccion' => new sfValidatorString(array('max_length' => 128, 'required' => false)), + 'ciudad' => new sfValidatorString(array('max_length' => 128, 'required' => false)), + 'codigo_postal' => new sfValidatorString(array('max_length' => 20, 'required' => false)), 'fk_provincia_id' => new sfValidatorPropelChoice(array('model' => 'Provincia', 'column' => 'id')), 'telefono' => new sfValidatorString(array('max_length' => 20, 'required' => false)), 'lugar_nacimiento' => new sfValidatorString(array('max_length' => 128, 'required' => false)), 'fk_tipodocumento_id' => new sfValidatorPropelChoice(array('model' => 'Tipodocumento', 'column' => 'id')), - 'nro_documento' => new sfValidatorString(array('max_length' => 16)), - 'sexo' => new sfValidatorString(array('max_length' => 1)), - 'email' => new sfValidatorString(array('max_length' => 128)), + 'nro_documento' => new sfValidatorString(array('max_length' => 16, 'required' => false)), + 'sexo' => new sfValidatorString(array('max_length' => 1, 'required' => false)), + 'email' => new sfValidatorString(array('max_length' => 128, 'required' => false)), 'distancia_escuela' => new sfValidatorInteger(array('required' => false)), - 'hermanos_escuela' => new sfValidatorBoolean(), - 'hijo_maestro_escuela' => new sfValidatorBoolean(), + 'hermanos_escuela' => new sfValidatorBoolean(array('required' => false)), + 'hijo_maestro_escuela' => new sfValidatorBoolean(array('required' => false)), 'fk_establecimiento_id' => new sfValidatorPropelChoice(array('model' => 'Establecimiento', 'column' => 'id')), 'fk_cuenta_id' => new sfValidatorPropelChoice(array('model' => 'Cuenta', 'column' => 'id')), - 'certificado_medico' => new sfValidatorBoolean(), - 'activo' => new sfValidatorBoolean(), + 'certificado_medico' => new sfValidatorBoolean(array('required' => false)), + 'activo' => new sfValidatorBoolean(array('required' => false)), 'fk_conceptobaja_id' => new sfValidatorPropelChoice(array('model' => 'Conceptobaja', 'column' => 'id', 'required' => false)), 'fk_pais_id' => new sfValidatorPropelChoice(array('model' => 'Pais', 'column' => 'id')), + 'procedencia' => new sfValidatorString(array('max_length' => 128, 'required' => false)), )); $this->widgetSchema->setNameFormat('alumno[%s]'); Modified: prosistem/alba/trunk/alba/lib/form/base/BaseEstablecimientoForm.class.php =================================================================== --- prosistem/alba/trunk/alba/lib/form/base/BaseEstablecimientoForm.class.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/lib/form/base/BaseEstablecimientoForm.class.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -16,6 +16,9 @@ 'id' => new sfWidgetFormInputHidden(), 'nombre' => new sfWidgetFormInput(), 'descripcion' => new sfWidgetFormInput(), + 'cuit' => new sfWidgetFormInput(), + 'legajoprefijo' => new sfWidgetFormInput(), + 'legajosiguiente' => new sfWidgetFormInput(), 'fk_distritoescolar_id' => new sfWidgetFormPropelChoice(array('model' => 'Distritoescolar', 'add_empty' => false)), 'fk_organizacion_id' => new sfWidgetFormPropelChoice(array('model' => 'Organizacion', 'add_empty' => false)), 'fk_niveltipo_id' => new sfWidgetFormPropelChoice(array('model' => 'Niveltipo', 'add_empty' => false)), @@ -25,6 +28,9 @@ 'id' => new sfValidatorPropelChoice(array('model' => 'Establecimiento', 'column' => 'id', 'required' => false)), 'nombre' => new sfValidatorString(array('max_length' => 128)), 'descripcion' => new sfValidatorString(array('max_length' => 255, 'required' => false)), + 'cuit' => new sfValidatorString(array('max_length' => 20, 'required' => false)), + 'legajoprefijo' => new sfValidatorString(array('max_length' => 10)), + 'legajosiguiente' => new sfValidatorInteger(array('required' => false)), 'fk_distritoescolar_id' => new sfValidatorPropelChoice(array('model' => 'Distritoescolar', 'column' => 'id')), 'fk_organizacion_id' => new sfValidatorPropelChoice(array('model' => 'Organizacion', 'column' => 'id')), 'fk_niveltipo_id' => new sfValidatorPropelChoice(array('model' => 'Niveltipo', 'column' => 'id')), Modified: prosistem/alba/trunk/alba/lib/form/base/BaseUsuarioForm.class.php =================================================================== --- prosistem/alba/trunk/alba/lib/form/base/BaseUsuarioForm.class.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/lib/form/base/BaseUsuarioForm.class.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -25,8 +25,8 @@ 'email' => new sfWidgetFormInput(), 'fk_establecimiento_id' => new sfWidgetFormPropelChoice(array('model' => 'Establecimiento', 'add_empty' => false)), 'borrado' => new sfWidgetFormInputCheckbox(), + 'usuario_rol_list' => new sfWidgetFormPropelChoiceMany(array('model' => 'Rol')), 'usuario_permiso_list' => new sfWidgetFormPropelChoiceMany(array('model' => 'Permiso')), - 'usuario_rol_list' => new sfWidgetFormPropelChoiceMany(array('model' => 'Rol')), )); $this->setValidators(array( @@ -42,8 +42,8 @@ 'email' => new sfValidatorString(array('max_length' => 128, 'required' => false)), 'fk_establecimiento_id' => new sfValidatorPropelChoice(array('model' => 'Establecimiento', 'column' => 'id')), 'borrado' => new sfValidatorBoolean(), + 'usuario_rol_list' => new sfValidatorPropelChoiceMany(array('model' => 'Rol', 'required' => false)), 'usuario_permiso_list' => new sfValidatorPropelChoiceMany(array('model' => 'Permiso', 'required' => false)), - 'usuario_rol_list' => new sfValidatorPropelChoiceMany(array('model' => 'Rol', 'required' => false)), )); $this->widgetSchema->setNameFormat('usuario[%s]'); @@ -63,26 +63,26 @@ { parent::updateDefaultsFromObject(); - if (isset($this->widgetSchema['usuario_permiso_list'])) + if (isset($this->widgetSchema['usuario_rol_list'])) { $values = array(); - foreach ($this->object->getUsuarioPermisos() as $obj) + foreach ($this->object->getUsuarioRols() as $obj) { - $values[] = $obj->getFkPermisoId(); + $values[] = $obj->getFkRolId(); } - $this->setDefault('usuario_permiso_list', $values); + $this->setDefault('usuario_rol_list', $values); } - if (isset($this->widgetSchema['usuario_rol_list'])) + if (isset($this->widgetSchema['usuario_permiso_list'])) { $values = array(); - foreach ($this->object->getUsuarioRols() as $obj) + foreach ($this->object->getUsuarioPermisos() as $obj) { - $values[] = $obj->getFkRolId(); + $values[] = $obj->getFkPermisoId(); } - $this->setDefault('usuario_rol_list', $values); + $this->setDefault('usuario_permiso_list', $values); } } @@ -91,18 +91,18 @@ { parent::doSave($con); + $this->saveUsuarioRolList($con); $this->saveUsuarioPermisoList($con); - $this->saveUsuarioRolList($con); } - public function saveUsuarioPermisoList($con = null) + public function saveUsuarioRolList($con = null) { if (!$this->isValid()) { throw $this->getErrorSchema(); } - if (!isset($this->widgetSchema['usuario_permiso_list'])) + if (!isset($this->widgetSchema['usuario_rol_list'])) { // somebody has unset this widget return; @@ -114,30 +114,30 @@ } $c = new Criteria(); - $c->add(UsuarioPermisoPeer::FK_USUARIO_ID, $this->object->getPrimaryKey()); - UsuarioPermisoPeer::doDelete($c, $con); + $c->add(UsuarioRolPeer::FK_USUARIO_ID, $this->object->getPrimaryKey()); + UsuarioRolPeer::doDelete($c, $con); - $values = $this->getValue('usuario_permiso_list'); + $values = $this->getValue('usuario_rol_list'); if (is_array($values)) { foreach ($values as $value) { - $obj = new UsuarioPermiso(); + $obj = new UsuarioRol(); $obj->setFkUsuarioId($this->object->getPrimaryKey()); - $obj->setFkPermisoId($value); + $obj->setFkRolId($value); $obj->save(); } } } - public function saveUsuarioRolList($con = null) + public function saveUsuarioPermisoList($con = null) { if (!$this->isValid()) { throw $this->getErrorSchema(); } - if (!isset($this->widgetSchema['usuario_rol_list'])) + if (!isset($this->widgetSchema['usuario_permiso_list'])) { // somebody has unset this widget return; @@ -149,17 +149,17 @@ } $c = new Criteria(); - $c->add(UsuarioRolPeer::FK_USUARIO_ID, $this->object->getPrimaryKey()); - UsuarioRolPeer::doDelete($c, $con); + $c->add(UsuarioPermisoPeer::FK_USUARIO_ID, $this->object->getPrimaryKey()); + UsuarioPermisoPeer::doDelete($c, $con); - $values = $this->getValue('usuario_rol_list'); + $values = $this->getValue('usuario_permiso_list'); if (is_array($values)) { foreach ($values as $value) { - $obj = new UsuarioRol(); + $obj = new UsuarioPermiso(); $obj->setFkUsuarioId($this->object->getPrimaryKey()); - $obj->setFkRolId($value); + $obj->setFkPermisoId($value); $obj->save(); } } Modified: prosistem/alba/trunk/alba/lib/model/map/AlumnoMapBuilder.php =================================================================== --- prosistem/alba/trunk/alba/lib/model/map/AlumnoMapBuilder.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/lib/model/map/AlumnoMapBuilder.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -35,19 +35,23 @@ $tMap->addPrimaryKey('ID', 'Id', 'INTEGER', true, null); + $tMap->addColumn('LEGAJO_PREFIJO', 'LegajoPrefijo', 'VARCHAR', true, 10); + + $tMap->addColumn('LEGAJO_NUMERO', 'LegajoNumero', 'INTEGER', true, null); + $tMap->addColumn('NOMBRE', 'Nombre', 'VARCHAR', true, 128); $tMap->addColumn('APELLIDO_MATERNO', 'ApellidoMaterno', 'VARCHAR', false, 128); $tMap->addColumn('APELLIDO', 'Apellido', 'VARCHAR', true, 128); - $tMap->addColumn('FECHA_NACIMIENTO', 'FechaNacimiento', 'TIMESTAMP', true, null); + $tMap->addColumn('FECHA_NACIMIENTO', 'FechaNacimiento', 'TIMESTAMP', false, null); - $tMap->addColumn('DIRECCION', 'Direccion', 'VARCHAR', true, 128); + $tMap->addColumn('DIRECCION', 'Direccion', 'VARCHAR', false, 128); - $tMap->addColumn('CIUDAD', 'Ciudad', 'VARCHAR', true, 128); + $tMap->addColumn('CIUDAD', 'Ciudad', 'VARCHAR', false, 128); - $tMap->addColumn('CODIGO_POSTAL', 'CodigoPostal', 'VARCHAR', true, 20); + $tMap->addColumn('CODIGO_POSTAL', 'CodigoPostal', 'VARCHAR', false, 20); $tMap->addForeignKey('FK_PROVINCIA_ID', 'FkProvinciaId', 'INTEGER', 'provincia', 'ID', true, null); @@ -57,29 +61,31 @@ $tMap->addForeignKey('FK_TIPODOCUMENTO_ID', 'FkTipodocumentoId', 'INTEGER', 'tipodocumento', 'ID', true, null); - $tMap->addColumn('NRO_DOCUMENTO', 'NroDocumento', 'VARCHAR', true, 16); + $tMap->addColumn('NRO_DOCUMENTO', 'NroDocumento', 'VARCHAR', false, 16); - $tMap->addColumn('SEXO', 'Sexo', 'CHAR', true, 1); + $tMap->addColumn('SEXO', 'Sexo', 'CHAR', false, 1); - $tMap->addColumn('EMAIL', 'Email', 'VARCHAR', true, 128); + $tMap->addColumn('EMAIL', 'Email', 'VARCHAR', false, 128); $tMap->addColumn('DISTANCIA_ESCUELA', 'DistanciaEscuela', 'INTEGER', false, null); - $tMap->addColumn('HERMANOS_ESCUELA', 'HermanosEscuela', 'BOOLEAN', true, null); + $tMap->addColumn('HERMANOS_ESCUELA', 'HermanosEscuela', 'BOOLEAN', false, null); - $tMap->addColumn('HIJO_MAESTRO_ESCUELA', 'HijoMaestroEscuela', 'BOOLEAN', true, null); + $tMap->addColumn('HIJO_MAESTRO_ESCUELA', 'HijoMaestroEscuela', 'BOOLEAN', false, null); $tMap->addForeignKey('FK_ESTABLECIMIENTO_ID', 'FkEstablecimientoId', 'INTEGER', 'establecimiento', 'ID', true, null); $tMap->addForeignKey('FK_CUENTA_ID', 'FkCuentaId', 'INTEGER', 'cuenta', 'ID', true, null); - $tMap->addColumn('CERTIFICADO_MEDICO', 'CertificadoMedico', 'BOOLEAN', true, null); + $tMap->addColumn('CERTIFICADO_MEDICO', 'CertificadoMedico', 'BOOLEAN', false, null); - $tMap->addColumn('ACTIVO', 'Activo', 'BOOLEAN', true, null); + $tMap->addColumn('ACTIVO', 'Activo', 'BOOLEAN', false, null); $tMap->addForeignKey('FK_CONCEPTOBAJA_ID', 'FkConceptobajaId', 'INTEGER', 'conceptobaja', 'ID', false, null); $tMap->addForeignKey('FK_PAIS_ID', 'FkPaisId', 'INTEGER', 'pais', 'ID', true, null); + $tMap->addColumn('PROCEDENCIA', 'Procedencia', 'VARCHAR', false, 128); + } } \ No newline at end of file Modified: prosistem/alba/trunk/alba/lib/model/map/EstablecimientoMapBuilder.php =================================================================== --- prosistem/alba/trunk/alba/lib/model/map/EstablecimientoMapBuilder.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/lib/model/map/EstablecimientoMapBuilder.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -39,6 +39,12 @@ $tMap->addColumn('DESCRIPCION', 'Descripcion', 'VARCHAR', false, 255); + $tMap->addColumn('CUIT', 'Cuit', 'VARCHAR', false, 20); + + $tMap->addColumn('LEGAJOPREFIJO', 'Legajoprefijo', 'VARCHAR', true, 10); + + $tMap->addColumn('LEGAJOSIGUIENTE', 'Legajosiguiente', 'INTEGER', false, null); + $tMap->addForeignKey('FK_DISTRITOESCOLAR_ID', 'FkDistritoescolarId', 'INTEGER', 'distritoescolar', 'ID', true, null); $tMap->addForeignKey('FK_ORGANIZACION_ID', 'FkOrganizacionId', 'INTEGER', 'organizacion', 'ID', true, null); Modified: prosistem/alba/trunk/alba/lib/model/om/BaseAlumno.php =================================================================== --- prosistem/alba/trunk/alba/lib/model/om/BaseAlumno.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/lib/model/om/BaseAlumno.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -13,6 +13,12 @@ protected $id; + protected $legajo_prefijo; + + + protected $legajo_numero; + + protected $nombre; @@ -82,6 +88,9 @@ protected $fk_pais_id; + protected $procedencia; + + protected $aProvincia; @@ -188,6 +197,18 @@ } + public function getLegajoPrefijo() + { + return $this->legajo_prefijo; + } + + + public function getLegajoNumero() + { + return $this->legajo_numero; + } + + public function getNombre() { return $this->nombre; @@ -347,6 +368,12 @@ } + public function getProcedencia() + { + return $this->procedencia; + } + + public function setId($v) { if ($v !== null) { @@ -361,6 +388,34 @@ return $this; } + public function setLegajoPrefijo($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->legajo_prefijo !== $v) { + $this->legajo_prefijo = $v; + $this->modifiedColumns[] = AlumnoPeer::LEGAJO_PREFIJO; + } + + return $this; + } + + public function setLegajoNumero($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->legajo_numero !== $v) { + $this->legajo_numero = $v; + $this->modifiedColumns[] = AlumnoPeer::LEGAJO_NUMERO; + } + + return $this; + } + public function setNombre($v) { if ($v !== null) { @@ -725,6 +780,20 @@ return $this; } + public function setProcedencia($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->procedencia !== $v) { + $this->procedencia = $v; + $this->modifiedColumns[] = AlumnoPeer::PROCEDENCIA; + } + + return $this; + } + public function hasOnlyDefaultValues() { if (array_diff($this->modifiedColumns, array(AlumnoPeer::FK_PROVINCIA_ID,AlumnoPeer::FK_TIPODOCUMENTO_ID,AlumnoPeer::DISTANCIA_ESCUELA,AlumnoPeer::HERMANOS_ESCUELA,AlumnoPeer::HIJO_MAESTRO_ESCUELA,AlumnoPeer::FK_ESTABLECIMIENTO_ID,AlumnoPeer::FK_CUENTA_ID,AlumnoPeer::CERTIFICADO_MEDICO,AlumnoPeer::ACTIVO,AlumnoPeer::FK_PAIS_ID))) { @@ -779,29 +848,32 @@ try { $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; - $this->nombre = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; - $this->apellido_materno = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->apellido = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; - $this->fecha_nacimiento = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; - $this->direccion = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; - $this->ciudad = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; - $this->codigo_postal = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null; - $this->fk_provincia_id = ($row[$startcol + 8] !== null) ? (int) $row[$startcol + 8] : null; - $this->telefono = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; - $this->lugar_nacimiento = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null; - $this->fk_tipodocumento_id = ($row[$startcol + 11] !== null) ? (int) $row[$startcol + 11] : null; - $this->nro_documento = ($row[$startcol + 12] !== null) ? (string) $row[$startcol + 12] : null; - $this->sexo = ($row[$startcol + 13] !== null) ? (string) $row[$startcol + 13] : null; - $this->email = ($row[$startcol + 14] !== null) ? (string) $row[$startcol + 14] : null; - $this->distancia_escuela = ($row[$startcol + 15] !== null) ? (int) $row[$startcol + 15] : null; - $this->hermanos_escuela = ($row[$startcol + 16] !== null) ? (boolean) $row[$startcol + 16] : null; - $this->hijo_maestro_escuela = ($row[$startcol + 17] !== null) ? (boolean) $row[$startcol + 17] : null; - $this->fk_establecimiento_id = ($row[$startcol + 18] !== null) ? (int) $row[$startcol + 18] : null; - $this->fk_cuenta_id = ($row[$startcol + 19] !== null) ? (int) $row[$startcol + 19] : null; - $this->certificado_medico = ($row[$startcol + 20] !== null) ? (boolean) $row[$startcol + 20] : null; - $this->activo = ($row[$startcol + 21] !== null) ? (boolean) $row[$startcol + 21] : null; - $this->fk_conceptobaja_id = ($row[$startcol + 22] !== null) ? (int) $row[$startcol + 22] : null; - $this->fk_pais_id = ($row[$startcol + 23] !== null) ? (int) $row[$startcol + 23] : null; + $this->legajo_prefijo = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; + $this->legajo_numero = ($row[$startcol + 2] !== null) ? (int) $row[$startcol + 2] : null; + $this->nombre = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->apellido_materno = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; + $this->apellido = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null; + $this->fecha_nacimiento = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null; + $this->direccion = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null; + $this->ciudad = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null; + $this->codigo_postal = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null; + $this->fk_provincia_id = ($row[$startcol + 10] !== null) ? (int) $row[$startcol + 10] : null; + $this->telefono = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null; + $this->lugar_nacimiento = ($row[$startcol + 12] !== null) ? (string) $row[$startcol + 12] : null; + $this->fk_tipodocumento_id = ($row[$startcol + 13] !== null) ? (int) $row[$startcol + 13] : null; + $this->nro_documento = ($row[$startcol + 14] !== null) ? (string) $row[$startcol + 14] : null; + $this->sexo = ($row[$startcol + 15] !== null) ? (string) $row[$startcol + 15] : null; + $this->email = ($row[$startcol + 16] !== null) ? (string) $row[$startcol + 16] : null; + $this->distancia_escuela = ($row[$startcol + 17] !== null) ? (int) $row[$startcol + 17] : null; + $this->hermanos_escuela = ($row[$startcol + 18] !== null) ? (boolean) $row[$startcol + 18] : null; + $this->hijo_maestro_escuela = ($row[$startcol + 19] !== null) ? (boolean) $row[$startcol + 19] : null; + $this->fk_establecimiento_id = ($row[$startcol + 20] !== null) ? (int) $row[$startcol + 20] : null; + $this->fk_cuenta_id = ($row[$startcol + 21] !== null) ? (int) $row[$startcol + 21] : null; + $this->certificado_medico = ($row[$startcol + 22] !== null) ? (boolean) $row[$startcol + 22] : null; + $this->activo = ($row[$startcol + 23] !== null) ? (boolean) $row[$startcol + 23] : null; + $this->fk_conceptobaja_id = ($row[$startcol + 24] !== null) ? (int) $row[$startcol + 24] : null; + $this->fk_pais_id = ($row[$startcol + 25] !== null) ? (int) $row[$startcol + 25] : null; + $this->procedencia = ($row[$startcol + 26] !== null) ? (string) $row[$startcol + 26] : null; $this->resetModified(); $this->setNew(false); @@ -810,7 +882,7 @@ $this->ensureConsistency(); } - return $startcol + 24; + return $startcol + 27; } catch (Exception $e) { throw new PropelException("Error populating Alumno object", $e); } @@ -1255,74 +1327,83 @@ return $this->getId(); break; case 1: + return $this->getLegajoPrefijo(); + break; + case 2: + return $this->getLegajoNumero(); + break; + case 3: return $this->getNombre(); break; - case 2: + case 4: return $this->getApellidoMaterno(); break; - case 3: + case 5: return $this->getApellido(); break; - case 4: + case 6: return $this->getFechaNacimiento(); break; - case 5: + case 7: return $this->getDireccion(); break; - case 6: + case 8: return $this->getCiudad(); break; - case 7: + case 9: return $this->getCodigoPostal(); break; - case 8: + case 10: return $this->getFkProvinciaId(); break; - case 9: + case 11: return $this->getTelefono(); break; - case 10: + case 12: return $this->getLugarNacimiento(); break; - case 11: + case 13: return $this->getFkTipodocumentoId(); break; - case 12: + case 14: return $this->getNroDocumento(); break; - case 13: + case 15: return $this->getSexo(); break; - case 14: + case 16: return $this->getEmail(); break; - case 15: + case 17: return $this->getDistanciaEscuela(); break; - case 16: + case 18: return $this->getHermanosEscuela(); break; - case 17: + case 19: return $this->getHijoMaestroEscuela(); break; - case 18: + case 20: return $this->getFkEstablecimientoId(); break; - case 19: + case 21: return $this->getFkCuentaId(); break; - case 20: + case 22: return $this->getCertificadoMedico(); break; - case 21: + case 23: return $this->getActivo(); break; - case 22: + case 24: return $this->getFkConceptobajaId(); break; - case 23: + case 25: return $this->getFkPaisId(); break; + case 26: + return $this->getProcedencia(); + break; default: return null; break; @@ -1334,29 +1415,32 @@ $keys = AlumnoPeer::getFieldNames($keyType); $result = array( $keys[0] => $this->getId(), - $keys[1] => $this->getNombre(), - $keys[2] => $this->getApellidoMaterno(), - $keys[3] => $this->getApellido(), - $keys[4] => $this->getFechaNacimiento(), - $keys[5] => $this->getDireccion(), - $keys[6] => $this->getCiudad(), - $keys[7] => $this->getCodigoPostal(), - $keys[8] => $this->getFkProvinciaId(), - $keys[9] => $this->getTelefono(), - $keys[10] => $this->getLugarNacimiento(), - $keys[11] => $this->getFkTipodocumentoId(), - $keys[12] => $this->getNroDocumento(), - $keys[13] => $this->getSexo(), - $keys[14] => $this->getEmail(), - $keys[15] => $this->getDistanciaEscuela(), - $keys[16] => $this->getHermanosEscuela(), - $keys[17] => $this->getHijoMaestroEscuela(), - $keys[18] => $this->getFkEstablecimientoId(), - $keys[19] => $this->getFkCuentaId(), - $keys[20] => $this->getCertificadoMedico(), - $keys[21] => $this->getActivo(), - $keys[22] => $this->getFkConceptobajaId(), - $keys[23] => $this->getFkPaisId(), + $keys[1] => $this->getLegajoPrefijo(), + $keys[2] => $this->getLegajoNumero(), + $keys[3] => $this->getNombre(), + $keys[4] => $this->getApellidoMaterno(), + $keys[5] => $this->getApellido(), + $keys[6] => $this->getFechaNacimiento(), + $keys[7] => $this->getDireccion(), + $keys[8] => $this->getCiudad(), + $keys[9] => $this->getCodigoPostal(), + $keys[10] => $this->getFkProvinciaId(), + $keys[11] => $this->getTelefono(), + $keys[12] => $this->getLugarNacimiento(), + $keys[13] => $this->getFkTipodocumentoId(), + $keys[14] => $this->getNroDocumento(), + $keys[15] => $this->getSexo(), + $keys[16] => $this->getEmail(), + $keys[17] => $this->getDistanciaEscuela(), + $keys[18] => $this->getHermanosEscuela(), + $keys[19] => $this->getHijoMaestroEscuela(), + $keys[20] => $this->getFkEstablecimientoId(), + $keys[21] => $this->getFkCuentaId(), + $keys[22] => $this->getCertificadoMedico(), + $keys[23] => $this->getActivo(), + $keys[24] => $this->getFkConceptobajaId(), + $keys[25] => $this->getFkPaisId(), + $keys[26] => $this->getProcedencia(), ); return $result; } @@ -1376,74 +1460,83 @@ $this->setId($value); break; case 1: + $this->setLegajoPrefijo($value); + break; + case 2: + $this->setLegajoNumero($value); + break; + case 3: $this->setNombre($value); break; - case 2: + case 4: $this->setApellidoMaterno($value); break; - case 3: + case 5: $this->setApellido($value); break; - case 4: + case 6: $this->setFechaNacimiento($value); break; - case 5: + case 7: $this->setDireccion($value); break; - case 6: + case 8: $this->setCiudad($value); break; - case 7: + case 9: $this->setCodigoPostal($value); break; - case 8: + case 10: $this->setFkProvinciaId($value); break; - case 9: + case 11: $this->setTelefono($value); break; - case 10: + case 12: $this->setLugarNacimiento($value); break; - case 11: + case 13: $this->setFkTipodocumentoId($value); break; - case 12: + case 14: $this->setNroDocumento($value); break; - case 13: + case 15: $this->setSexo($value); break; - case 14: + case 16: $this->setEmail($value); break; - case 15: + case 17: $this->setDistanciaEscuela($value); break; - case 16: + case 18: $this->setHermanosEscuela($value); break; - case 17: + case 19: $this->setHijoMaestroEscuela($value); break; - case 18: + case 20: $this->setFkEstablecimientoId($value); break; - case 19: + case 21: $this->setFkCuentaId($value); break; - case 20: + case 22: $this->setCertificadoMedico($value); break; - case 21: + case 23: $this->setActivo($value); break; - case 22: + case 24: $this->setFkConceptobajaId($value); break; - case 23: + case 25: $this->setFkPaisId($value); break; + case 26: + $this->setProcedencia($value); + break; } } @@ -1452,29 +1545,32 @@ $keys = AlumnoPeer::getFieldNames($keyType); if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); - if (array_key_exists($keys[1], $arr)) $this->setNombre($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setApellidoMaterno($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setApellido($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setFechaNacimiento($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setDireccion($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setCiudad($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setCodigoPostal($arr[$keys[7]]); - if (array_key_exists($keys[8], $arr)) $this->setFkProvinciaId($arr[$keys[8]]); - if (array_key_exists($keys[9], $arr)) $this->setTelefono($arr[$keys[9]]); - if (array_key_exists($keys[10], $arr)) $this->setLugarNacimiento($arr[$keys[10]]); - if (array_key_exists($keys[11], $arr)) $this->setFkTipodocumentoId($arr[$keys[11]]); - if (array_key_exists($keys[12], $arr)) $this->setNroDocumento($arr[$keys[12]]); - if (array_key_exists($keys[13], $arr)) $this->setSexo($arr[$keys[13]]); - if (array_key_exists($keys[14], $arr)) $this->setEmail($arr[$keys[14]]); - if (array_key_exists($keys[15], $arr)) $this->setDistanciaEscuela($arr[$keys[15]]); - if (array_key_exists($keys[16], $arr)) $this->setHermanosEscuela($arr[$keys[16]]); - if (array_key_exists($keys[17], $arr)) $this->setHijoMaestroEscuela($arr[$keys[17]]); - if (array_key_exists($keys[18], $arr)) $this->setFkEstablecimientoId($arr[$keys[18]]); - if (array_key_exists($keys[19], $arr)) $this->setFkCuentaId($arr[$keys[19]]); - if (array_key_exists($keys[20], $arr)) $this->setCertificadoMedico($arr[$keys[20]]); - if (array_key_exists($keys[21], $arr)) $this->setActivo($arr[$keys[21]]); - if (array_key_exists($keys[22], $arr)) $this->setFkConceptobajaId($arr[$keys[22]]); - if (array_key_exists($keys[23], $arr)) $this->setFkPaisId($arr[$keys[23]]); + if (array_key_exists($keys[1], $arr)) $this->setLegajoPrefijo($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setLegajoNumero($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setNombre($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setApellidoMaterno($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setApellido($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setFechaNacimiento($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setDireccion($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setCiudad($arr[$keys[8]]); + if (array_key_exists($keys[9], $arr)) $this->setCodigoPostal($arr[$keys[9]]); + if (array_key_exists($keys[10], $arr)) $this->setFkProvinciaId($arr[$keys[10]]); + if (array_key_exists($keys[11], $arr)) $this->setTelefono($arr[$keys[11]]); + if (array_key_exists($keys[12], $arr)) $this->setLugarNacimiento($arr[$keys[12]]); + if (array_key_exists($keys[13], $arr)) $this->setFkTipodocumentoId($arr[$keys[13]]); + if (array_key_exists($keys[14], $arr)) $this->setNroDocumento($arr[$keys[14]]); + if (array_key_exists($keys[15], $arr)) $this->setSexo($arr[$keys[15]]); + if (array_key_exists($keys[16], $arr)) $this->setEmail($arr[$keys[16]]); + if (array_key_exists($keys[17], $arr)) $this->setDistanciaEscuela($arr[$keys[17]]); + if (array_key_exists($keys[18], $arr)) $this->setHermanosEscuela($arr[$keys[18]]); + if (array_key_exists($keys[19], $arr)) $this->setHijoMaestroEscuela($arr[$keys[19]]); + if (array_key_exists($keys[20], $arr)) $this->setFkEstablecimientoId($arr[$keys[20]]); + if (array_key_exists($keys[21], $arr)) $this->setFkCuentaId($arr[$keys[21]]); + if (array_key_exists($keys[22], $arr)) $this->setCertificadoMedico($arr[$keys[22]]); + if (array_key_exists($keys[23], $arr)) $this->setActivo($arr[$keys[23]]); + if (array_key_exists($keys[24], $arr)) $this->setFkConceptobajaId($arr[$keys[24]]); + if (array_key_exists($keys[25], $arr)) $this->setFkPaisId($arr[$keys[25]]); + if (array_key_exists($keys[26], $arr)) $this->setProcedencia($arr[$keys[26]]); } @@ -1483,6 +1579,8 @@ $criteria = new Criteria(AlumnoPeer::DATABASE_NAME); if ($this->isColumnModified(AlumnoPeer::ID)) $criteria->add(AlumnoPeer::ID, $this->id); + if ($this->isColumnModified(AlumnoPeer::LEGAJO_PREFIJO)) $criteria->add(AlumnoPeer::LEGAJO_PREFIJO, $this->legajo_prefijo); + if ($this->isColumnModified(AlumnoPeer::LEGAJO_NUMERO)) $criteria->add(AlumnoPeer::LEGAJO_NUMERO, $this->legajo_numero); if ($this->isColumnModified(AlumnoPeer::NOMBRE)) $criteria->add(AlumnoPeer::NOMBRE, $this->nombre); if ($this->isColumnModified(AlumnoPeer::APELLIDO_MATERNO)) $criteria->add(AlumnoPeer::APELLIDO_MATERNO, $this->apellido_materno); if ($this->isColumnModified(AlumnoPeer::APELLIDO)) $criteria->add(AlumnoPeer::APELLIDO, $this->apellido); @@ -1506,6 +1604,7 @@ if ($this->isColumnModified(AlumnoPeer::ACTIVO)) $criteria->add(AlumnoPeer::ACTIVO, $this->activo); if ($this->isColumnModified(AlumnoPeer::FK_CONCEPTOBAJA_ID)) $criteria->add(AlumnoPeer::FK_CONCEPTOBAJA_ID, $this->fk_conceptobaja_id); if ($this->isColumnModified(AlumnoPeer::FK_PAIS_ID)) $criteria->add(AlumnoPeer::FK_PAIS_ID, $this->fk_pais_id); + if ($this->isColumnModified(AlumnoPeer::PROCEDENCIA)) $criteria->add(AlumnoPeer::PROCEDENCIA, $this->procedencia); return $criteria; } @@ -1536,6 +1635,10 @@ public function copyInto($copyObj, $deepCopy = false) { + $copyObj->setLegajoPrefijo($this->legajo_prefijo); + + $copyObj->setLegajoNumero($this->legajo_numero); + $copyObj->setNombre($this->nombre); $copyObj->setApellidoMaterno($this->apellido_materno); @@ -1582,7 +1685,9 @@ $copyObj->setFkPaisId($this->fk_pais_id); + $copyObj->setProcedencia($this->procedencia); + if ($deepCopy) { $copyObj->setNew(false); Modified: prosistem/alba/trunk/alba/lib/model/om/BaseAlumnoPeer.php =================================================================== --- prosistem/alba/trunk/alba/lib/model/om/BaseAlumnoPeer.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/lib/model/om/BaseAlumnoPeer.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -13,7 +13,7 @@ const CLASS_DEFAULT = 'lib.model.Alumno'; - const NUM_COLUMNS = 24; + const NUM_COLUMNS = 27; const NUM_LAZY_LOAD_COLUMNS = 0; @@ -22,6 +22,12 @@ const ID = 'alumno.ID'; + const LEGAJO_PREFIJO = 'alumno.LEGAJO_PREFIJO'; + + + const LEGAJO_NUMERO = 'alumno.LEGAJO_NUMERO'; + + const NOMBRE = 'alumno.NOMBRE'; @@ -91,6 +97,9 @@ const FK_PAIS_ID = 'alumno.FK_PAIS_ID'; + const PROCEDENCIA = 'alumno.PROCEDENCIA'; + + public static $instances = array(); @@ -98,20 +107,20 @@ private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('Id', 'Nombre', 'ApellidoMaterno', 'Apellido', 'FechaNacimiento', 'Direccion', 'Ciudad', 'CodigoPostal', 'FkProvinciaId', 'Telefono', 'LugarNacimiento', 'FkTipodocumentoId', 'NroDocumento', 'Sexo', 'Email', 'DistanciaEscuela', 'HermanosEscuela', 'HijoMaestroEscuela', 'FkEstablecimientoId', 'FkCuentaId', 'CertificadoMedico', 'Activo', 'FkConceptobajaId', 'FkPaisId', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'nombre', 'apellidoMaterno', 'apellido', 'fechaNacimiento', 'direccion', 'ciudad', 'codigoPostal', 'fkProvinciaId', 'telefono', 'lugarNacimiento', 'fkTipodocumentoId', 'nroDocumento', 'sexo', 'email', 'distanciaEscuela', 'hermanosEscuela', 'hijoMaestroEscuela', 'fkEstablecimientoId', 'fkCuentaId', 'certificadoMedico', 'activo', 'fkConceptobajaId', 'fkPaisId', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::NOMBRE, self::APELLIDO_MATERNO, self::APELLIDO, self::FECHA_NACIMIENTO, self::DIRECCION, self::CIUDAD, self::CODIGO_POSTAL, self::FK_PROVINCIA_ID, self::TELEFONO, self::LUGAR_NACIMIENTO, self::FK_TIPODOCUMENTO_ID, self::NRO_DOCUMENTO, self::SEXO, self::EMAIL, self::DISTANCIA_ESCUELA, self::HERMANOS_ESCUELA, self::HIJO_MAESTRO_ESCUELA, self::FK_ESTABLECIMIENTO_ID, self::FK_CUENTA_ID, self::CERTIFICADO_MEDICO, self::ACTIVO, self::FK_CONCEPTOBAJA_ID, self::FK_PAIS_ID, ), - BasePeer::TYPE_FIELDNAME => array ('id', 'nombre', 'apellido_materno', 'apellido', 'fecha_nacimiento', 'direccion', 'ciudad', 'codigo_postal', 'fk_provincia_id', 'telefono', 'lugar_nacimiento', 'fk_tipodocumento_id', 'nro_documento', 'sexo', 'email', 'distancia_escuela', 'hermanos_escuela', 'hijo_maestro_escuela', 'fk_establecimiento_id', 'fk_cuenta_id', 'certificado_medico', 'activo', 'fk_conceptobaja_id', 'fk_pais_id', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, ) + BasePeer::TYPE_PHPNAME => array ('Id', 'LegajoPrefijo', 'LegajoNumero', 'Nombre', 'ApellidoMaterno', 'Apellido', 'FechaNacimiento', 'Direccion', 'Ciudad', 'CodigoPostal', 'FkProvinciaId', 'Telefono', 'LugarNacimiento', 'FkTipodocumentoId', 'NroDocumento', 'Sexo', 'Email', 'DistanciaEscuela', 'HermanosEscuela', 'HijoMaestroEscuela', 'FkEstablecimientoId', 'FkCuentaId', 'CertificadoMedico', 'Activo', 'FkConceptobajaId', 'FkPaisId', 'Procedencia', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'legajoPrefijo', 'legajoNumero', 'nombre', 'apellidoMaterno', 'apellido', 'fechaNacimiento', 'direccion', 'ciudad', 'codigoPostal', 'fkProvinciaId', 'telefono', 'lugarNacimiento', 'fkTipodocumentoId', 'nroDocumento', 'sexo', 'email', 'distanciaEscuela', 'hermanosEscuela', 'hijoMaestroEscuela', 'fkEstablecimientoId', 'fkCuentaId', 'certificadoMedico', 'activo', 'fkConceptobajaId', 'fkPaisId', 'procedencia', ), + BasePeer::TYPE_COLNAME => array (self::ID, self::LEGAJO_PREFIJO, self::LEGAJO_NUMERO, self::NOMBRE, self::APELLIDO_MATERNO, self::APELLIDO, self::FECHA_NACIMIENTO, self::DIRECCION, self::CIUDAD, self::CODIGO_POSTAL, self::FK_PROVINCIA_ID, self::TELEFONO, self::LUGAR_NACIMIENTO, self::FK_TIPODOCUMENTO_ID, self::NRO_DOCUMENTO, self::SEXO, self::EMAIL, self::DISTANCIA_ESCUELA, self::HERMANOS_ESCUELA, self::HIJO_MAESTRO_ESCUELA, self::FK_ESTABLECIMIENTO_ID, self::FK_CUENTA_ID, self::CERTIFICADO_MEDICO, self::ACTIVO, self::FK_CONCEPTOBAJA_ID, self::FK_PAIS_ID, self::PROCEDENCIA, ), + BasePeer::TYPE_FIELDNAME => array ('id', 'legajo_prefijo', 'legajo_numero', 'nombre', 'apellido_materno', 'apellido', 'fecha_nacimiento', 'direccion', 'ciudad', 'codigo_postal', 'fk_provincia_id', 'telefono', 'lugar_nacimiento', 'fk_tipodocumento_id', 'nro_documento', 'sexo', 'email', 'distancia_escuela', 'hermanos_escuela', 'hijo_maestro_escuela', 'fk_establecimiento_id', 'fk_cuenta_id', 'certificado_medico', 'activo', 'fk_conceptobaja_id', 'fk_pais_id', 'procedencia', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, ) ); private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Nombre' => 1, 'ApellidoMaterno' => 2, 'Apellido' => 3, 'FechaNacimiento' => 4, 'Direccion' => 5, 'Ciudad' => 6, 'CodigoPostal' => 7, 'FkProvinciaId' => 8, 'Telefono' => 9, 'LugarNacimiento' => 10, 'FkTipodocumentoId' => 11, 'NroDocumento' => 12, 'Sexo' => 13, 'Email' => 14, 'DistanciaEscuela' => 15, 'HermanosEscuela' => 16, 'HijoMaestroEscuela' => 17, 'FkEstablecimientoId' => 18, 'FkCuentaId' => 19, 'CertificadoMedico' => 20, 'Activo' => 21, 'FkConceptobajaId' => 22, 'FkPaisId' => 23, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'nombre' => 1, 'apellidoMaterno' => 2, 'apellido' => 3, 'fechaNacimiento' => 4, 'direccion' => 5, 'ciudad' => 6, 'codigoPostal' => 7, 'fkProvinciaId' => 8, 'telefono' => 9, 'lugarNacimiento' => 10, 'fkTipodocumentoId' => 11, 'nroDocumento' => 12, 'sexo' => 13, 'email' => 14, 'distanciaEscuela' => 15, 'hermanosEscuela' => 16, 'hijoMaestroEscuela' => 17, 'fkEstablecimientoId' => 18, 'fkCuentaId' => 19, 'certificadoMedico' => 20, 'activo' => 21, 'fkConceptobajaId' => 22, 'fkPaisId' => 23, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NOMBRE => 1, self::APELLIDO_MATERNO => 2, self::APELLIDO => 3, self::FECHA_NACIMIENTO => 4, self::DIRECCION => 5, self::CIUDAD => 6, self::CODIGO_POSTAL => 7, self::FK_PROVINCIA_ID => 8, self::TELEFONO => 9, self::LUGAR_NACIMIENTO => 10, self::FK_TIPODOCUMENTO_ID => 11, self::NRO_DOCUMENTO => 12, self::SEXO => 13, self::EMAIL => 14, self::DISTANCIA_ESCUELA => 15, self::HERMANOS_ESCUELA => 16, self::HIJO_MAESTRO_ESCUELA => 17, self::FK_ESTABLECIMIENTO_ID => 18, self::FK_CUENTA_ID => 19, self::CERTIFICADO_MEDICO => 20, self::ACTIVO => 21, self::FK_CONCEPTOBAJA_ID => 22, self::FK_PAIS_ID => 23, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'nombre' => 1, 'apellido_materno' => 2, 'apellido' => 3, 'fecha_nacimiento' => 4, 'direccion' => 5, 'ciudad' => 6, 'codigo_postal' => 7, 'fk_provincia_id' => 8, 'telefono' => 9, 'lugar_nacimiento' => 10, 'fk_tipodocumento_id' => 11, 'nro_documento' => 12, 'sexo' => 13, 'email' => 14, 'distancia_escuela' => 15, 'hermanos_escuela' => 16, 'hijo_maestro_escuela' => 17, 'fk_establecimiento_id' => 18, 'fk_cuenta_id' => 19, 'certificado_medico' => 20, 'activo' => 21, 'fk_conceptobaja_id' => 22, 'fk_pais_id' => 23, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, ) + BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'LegajoPrefijo' => 1, 'LegajoNumero' => 2, 'Nombre' => 3, 'ApellidoMaterno' => 4, 'Apellido' => 5, 'FechaNacimiento' => 6, 'Direccion' => 7, 'Ciudad' => 8, 'CodigoPostal' => 9, 'FkProvinciaId' => 10, 'Telefono' => 11, 'LugarNacimiento' => 12, 'FkTipodocumentoId' => 13, 'NroDocumento' => 14, 'Sexo' => 15, 'Email' => 16, 'DistanciaEscuela' => 17, 'HermanosEscuela' => 18, 'HijoMaestroEscuela' => 19, 'FkEstablecimientoId' => 20, 'FkCuentaId' => 21, 'CertificadoMedico' => 22, 'Activo' => 23, 'FkConceptobajaId' => 24, 'FkPaisId' => 25, 'Procedencia' => 26, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'legajoPrefijo' => 1, 'legajoNumero' => 2, 'nombre' => 3, 'apellidoMaterno' => 4, 'apellido' => 5, 'fechaNacimiento' => 6, 'direccion' => 7, 'ciudad' => 8, 'codigoPostal' => 9, 'fkProvinciaId' => 10, 'telefono' => 11, 'lugarNacimiento' => 12, 'fkTipodocumentoId' => 13, 'nroDocumento' => 14, 'sexo' => 15, 'email' => 16, 'distanciaEscuela' => 17, 'hermanosEscuela' => 18, 'hijoMaestroEscuela' => 19, 'fkEstablecimientoId' => 20, 'fkCuentaId' => 21, 'certificadoMedico' => 22, 'activo' => 23, 'fkConceptobajaId' => 24, 'fkPaisId' => 25, 'procedencia' => 26, ), + BasePeer::TYPE_COLNAME => array (self::ID => 0, self::LEGAJO_PREFIJO => 1, self::LEGAJO_NUMERO => 2, self::NOMBRE => 3, self::APELLIDO_MATERNO => 4, self::APELLIDO => 5, self::FECHA_NACIMIENTO => 6, self::DIRECCION => 7, self::CIUDAD => 8, self::CODIGO_POSTAL => 9, self::FK_PROVINCIA_ID => 10, self::TELEFONO => 11, self::LUGAR_NACIMIENTO => 12, self::FK_TIPODOCUMENTO_ID => 13, self::NRO_DOCUMENTO => 14, self::SEXO => 15, self::EMAIL => 16, self::DISTANCIA_ESCUELA => 17, self::HERMANOS_ESCUELA => 18, self::HIJO_MAESTRO_ESCUELA => 19, self::FK_ESTABLECIMIENTO_ID => 20, self::FK_CUENTA_ID => 21, self::CERTIFICADO_MEDICO => 22, self::ACTIVO => 23, self::FK_CONCEPTOBAJA_ID => 24, self::FK_PAIS_ID => 25, self::PROCEDENCIA => 26, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'legajo_prefijo' => 1, 'legajo_numero' => 2, 'nombre' => 3, 'apellido_materno' => 4, 'apellido' => 5, 'fecha_nacimiento' => 6, 'direccion' => 7, 'ciudad' => 8, 'codigo_postal' => 9, 'fk_provincia_id' => 10, 'telefono' => 11, 'lugar_nacimiento' => 12, 'fk_tipodocumento_id' => 13, 'nro_documento' => 14, 'sexo' => 15, 'email' => 16, 'distancia_escuela' => 17, 'hermanos_escuela' => 18, 'hijo_maestro_escuela' => 19, 'fk_establecimiento_id' => 20, 'fk_cuenta_id' => 21, 'certificado_medico' => 22, 'activo' => 23, 'fk_conceptobaja_id' => 24, 'fk_pais_id' => 25, 'procedencia' => 26, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, ) ); @@ -155,6 +164,10 @@ $criteria->addSelectColumn(AlumnoPeer::ID); + $criteria->addSelectColumn(AlumnoPeer::LEGAJO_PREFIJO); + + $criteria->addSelectColumn(AlumnoPeer::LEGAJO_NUMERO); + $criteria->addSelectColumn(AlumnoPeer::NOMBRE); $criteria->addSelectColumn(AlumnoPeer::APELLIDO_MATERNO); @@ -201,6 +214,8 @@ $criteria->addSelectColumn(AlumnoPeer::FK_PAIS_ID); + $criteria->addSelectColumn(AlumnoPeer::PROCEDENCIA); + } Modified: prosistem/alba/trunk/alba/lib/model/om/BaseEstablecimiento.php =================================================================== --- prosistem/alba/trunk/alba/lib/model/om/BaseEstablecimiento.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/lib/model/om/BaseEstablecimiento.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -19,6 +19,15 @@ protected $descripcion; + protected $cuit; + + + protected $legajoprefijo; + + + protected $legajosiguiente; + + protected $fk_distritoescolar_id; @@ -142,6 +151,24 @@ } + public function getCuit() + { + return $this->cuit; + } + + + public function getLegajoprefijo() + { + return $this->legajoprefijo; + } + + + public function getLegajosiguiente() + { + return $this->legajosiguiente; + } + + public function getFkDistritoescolarId() { return $this->fk_distritoescolar_id; @@ -202,6 +229,48 @@ return $this; } + public function setCuit($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->cuit !== $v) { + $this->cuit = $v; + $this->modifiedColumns[] = EstablecimientoPeer::CUIT; + } + + return $this; + } + + public function setLegajoprefijo($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->legajoprefijo !== $v) { + $this->legajoprefijo = $v; + $this->modifiedColumns[] = EstablecimientoPeer::LEGAJOPREFIJO; + } + + return $this; + } + + public function setLegajosiguiente($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->legajosiguiente !== $v) { + $this->legajosiguiente = $v; + $this->modifiedColumns[] = EstablecimientoPeer::LEGAJOSIGUIENTE; + } + + return $this; + } + public function setFkDistritoescolarId($v) { if ($v !== null) { @@ -284,9 +353,12 @@ $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; $this->nombre = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null; $this->descripcion = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null; - $this->fk_distritoescolar_id = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null; - $this->fk_organizacion_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null; - $this->fk_niveltipo_id = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null; + $this->cuit = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null; + $this->legajoprefijo = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null; + $this->legajosiguiente = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null; + $this->fk_distritoescolar_id = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null; + $this->fk_organizacion_id = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null; + $this->fk_niveltipo_id = ($row[$startcol + 8] !== null) ? (int) $row[$startcol + 8] : null; $this->resetModified(); $this->setNew(false); @@ -295,7 +367,7 @@ $this->ensureConsistency(); } - return $startcol + 6; + return $startcol + 9; } catch (Exception $e) { throw new PropelException("Error populating Establecimiento object", $e); } @@ -733,12 +805,21 @@ return $this->getDescripcion(); break; case 3: + return $this->getCuit(); + break; + case 4: + return $this->getLegajoprefijo(); + break; + case 5: + return $this->getLegajosiguiente(); + break; + case 6: return $this->getFkDistritoescolarId(); break; - case 4: + case 7: return $this->getFkOrganizacionId(); break; - case 5: + case 8: return $this->getFkNiveltipoId(); break; default: @@ -754,9 +835,12 @@ $keys[0] => $this->getId(), $keys[1] => $this->getNombre(), $keys[2] => $this->getDescripcion(), - $keys[3] => $this->getFkDistritoescolarId(), - $keys[4] => $this->getFkOrganizacionId(), - $keys[5] => $this->getFkNiveltipoId(), + $keys[3] => $this->getCuit(), + $keys[4] => $this->getLegajoprefijo(), + $keys[5] => $this->getLegajosiguiente(), + $keys[6] => $this->getFkDistritoescolarId(), + $keys[7] => $this->getFkOrganizacionId(), + $keys[8] => $this->getFkNiveltipoId(), ); return $result; } @@ -782,12 +866,21 @@ $this->setDescripcion($value); break; case 3: + $this->setCuit($value); + break; + case 4: + $this->setLegajoprefijo($value); + break; + case 5: + $this->setLegajosiguiente($value); + break; + case 6: $this->setFkDistritoescolarId($value); break; - case 4: + case 7: $this->setFkOrganizacionId($value); break; - case 5: + case 8: $this->setFkNiveltipoId($value); break; } } @@ -800,9 +893,12 @@ if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); if (array_key_exists($keys[1], $arr)) $this->setNombre($arr[$keys[1]]); if (array_key_exists($keys[2], $arr)) $this->setDescripcion($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setFkDistritoescolarId($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setFkOrganizacionId($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setFkNiveltipoId($arr[$keys[5]]); + if (array_key_exists($keys[3], $arr)) $this->setCuit($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setLegajoprefijo($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setLegajosiguiente($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setFkDistritoescolarId($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setFkOrganizacionId($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setFkNiveltipoId($arr[$keys[8]]); } @@ -813,6 +909,9 @@ if ($this->isColumnModified(EstablecimientoPeer::ID)) $criteria->add(EstablecimientoPeer::ID, $this->id); if ($this->isColumnModified(EstablecimientoPeer::NOMBRE)) $criteria->add(EstablecimientoPeer::NOMBRE, $this->nombre); if ($this->isColumnModified(EstablecimientoPeer::DESCRIPCION)) $criteria->add(EstablecimientoPeer::DESCRIPCION, $this->descripcion); + if ($this->isColumnModified(EstablecimientoPeer::CUIT)) $criteria->add(EstablecimientoPeer::CUIT, $this->cuit); + if ($this->isColumnModified(EstablecimientoPeer::LEGAJOPREFIJO)) $criteria->add(EstablecimientoPeer::LEGAJOPREFIJO, $this->legajoprefijo); + if ($this->isColumnModified(EstablecimientoPeer::LEGAJOSIGUIENTE)) $criteria->add(EstablecimientoPeer::LEGAJOSIGUIENTE, $this->legajosiguiente); if ($this->isColumnModified(EstablecimientoPeer::FK_DISTRITOESCOLAR_ID)) $criteria->add(EstablecimientoPeer::FK_DISTRITOESCOLAR_ID, $this->fk_distritoescolar_id); if ($this->isColumnModified(EstablecimientoPeer::FK_ORGANIZACION_ID)) $criteria->add(EstablecimientoPeer::FK_ORGANIZACION_ID, $this->fk_organizacion_id); if ($this->isColumnModified(EstablecimientoPeer::FK_NIVELTIPO_ID)) $criteria->add(EstablecimientoPeer::FK_NIVELTIPO_ID, $this->fk_niveltipo_id); @@ -850,6 +949,12 @@ $copyObj->setDescripcion($this->descripcion); + $copyObj->setCuit($this->cuit); + + $copyObj->setLegajoprefijo($this->legajoprefijo); + + $copyObj->setLegajosiguiente($this->legajosiguiente); + $copyObj->setFkDistritoescolarId($this->fk_distritoescolar_id); $copyObj->setFkOrganizacionId($this->fk_organizacion_id); Modified: prosistem/alba/trunk/alba/lib/model/om/BaseEstablecimientoPeer.php =================================================================== --- prosistem/alba/trunk/alba/lib/model/om/BaseEstablecimientoPeer.php 2009-05-05 00:41:26 UTC (rev 6158) +++ prosistem/alba/trunk/alba/lib/model/om/BaseEstablecimientoPeer.php 2009-05-05 02:15:35 UTC (rev 6159) @@ -13,7 +13,7 @@ const CLASS_DEFAULT = 'lib.model.Establecimiento'; - const NUM_COLUMNS = 6; + const NUM_COLUMNS = 9; const NUM_LAZY_LOAD_COLUMNS = 0; @@ -28,6 +28,15 @@ const DESCRIPCION = 'establecimiento.DESCRIPCION'; + const CUIT = 'establecimiento.CUIT'; + + + const LEGAJOPREFIJO = 'establecimiento.LEGAJOPREFIJO'; + + + const LEGAJOSIGUIENTE = 'establecimiento.LEGAJOSIGUIENTE'; + + const FK_DISTRITOESCOLAR_ID = 'establecimiento.FK_DISTRITOESCOLAR_ID'; @@ -44,20 +53,20 @@ private static $fieldNames = array ( - BasePeer::TYPE_PHPNAME => array ('Id', 'Nombre', 'Descripcion', 'FkDistritoescolarId', 'FkOrganizacionId', 'FkNiveltipoId', ), - BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'nombre', 'descripcion', 'fkDistritoescolarId', 'fkOrganizacionId', 'fkNiveltipoId', ), - BasePeer::TYPE_COLNAME => array (self::ID, self::NOMBRE, self::DESCRIPCION, self::FK_DISTRITOESCOLAR_ID, self::FK_ORGANIZACION_ID, self::FK_NIVELTIPO_ID, ), - BasePeer::TYPE_FIELDNAME => array ('id', 'nombre', 'descripcion', 'fk_distritoescolar_id', 'fk_organizacion_id', 'fk_niveltipo_id', ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, ) + BasePeer::TYPE_PHPNAME => array ('Id', 'Nombre', 'Descripcion', 'Cuit', 'Legajoprefijo', 'Legajosiguiente', 'FkDistritoescolarId', 'FkOrganizacionId', 'FkNiveltipoId', ), + BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'nombre', 'descripcion', 'cuit', 'legajoprefijo', 'legajosiguiente', 'fkDistritoescolarId', 'fkOrganizacionId', 'fkNiveltipoId', ), + BasePeer::TYPE_COLNAME => array (self::ID, self::NOMBRE, self::DESCRIPCION, self::CUIT, self::LEGAJOPREFIJO, self::LEGAJOSIGUIENTE, self::FK_DISTRITOESCOLAR_ID, self::FK_ORGANIZACION_ID, self::FK_NIVELTIPO_ID, ), + BasePeer::TYPE_FIELDNAME => array ('id', 'nombre', 'descripcion', 'cuit', 'legajoprefijo', 'legajosiguiente', 'fk_distritoescolar_id', 'fk_organizacion_id', 'fk_niveltipo_id', ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, ) ); private static $fieldKeys = array ( - BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Nombre' => 1, 'Descripcion' => 2, 'FkDistritoescolarId' => 3, 'FkOrganizacionId' => 4, 'FkNiveltipoId' => 5, ), - BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'nombre' => 1, 'descripcion' => 2, 'fkDistritoescolarId' => 3, 'fkOrganizacionId' => 4, 'fkNiveltipoId' => 5, ), - BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NOMBRE => 1, self::DESCRIPCION => 2, self::FK_DISTRITOESCOLAR_ID => 3, self::FK_ORGANIZACION_ID => 4, self::FK_NIVELTIPO_ID => 5, ), - BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'nombre' => 1, 'descripcion' => 2, 'fk_distritoescolar_id' => 3, 'fk_organizacion_id' => 4, 'fk_niveltipo_id' => 5, ), - BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, ) + BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Nombre' => 1, 'Descripcion' => 2, 'Cuit' => 3, 'Legajoprefijo' => 4, 'Legajosiguiente' => 5, 'FkDistritoescolarId' => 6, 'FkOrganizacionId' => 7, 'FkNiveltipoId' => 8, ), + BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'nombre' => 1, 'descripcion' => 2, 'cuit' => 3, 'legajoprefijo' => 4, 'legajosiguiente' => 5, 'fkDistritoescolarId' => 6, 'fkOrganizacionId' => 7, 'fkNiveltipoId' => 8, ), + BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NOMBRE => 1, self::DESCRIPCION => 2, self::CUIT => 3, self::LEGAJOPREFIJO => 4, self::LEGAJOSIGUIENTE => 5, self::FK_DISTRITOESCOLAR_ID => 6, self::FK_ORGANIZACION_ID => 7, self::FK_NIVELTIPO_ID => 8, ), + BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'nombre' => 1, 'descripcion' => 2, 'cuit' => 3, 'legajoprefijo' => 4, 'legajosiguiente' => 5, 'fk_distritoescolar_id' => 6, 'fk_organizacion_id' => 7, 'fk_niveltipo_id' => 8, ), + BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, ) ); @@ -105,6 +114,12 @@ $criteria->addSelectColumn(EstablecimientoPeer::DESCRIPCION); + $criteria->addSelectColumn(EstablecimientoPeer::CUIT); + + $criteria->addSelectColumn(EstablecimientoPeer::LEGAJOPREFIJO); + + $criteria->addSelectColumn(EstablecimientoPeer::LEGAJOSIGUIENTE); + $criteria->addSelectColumn(EstablecimientoPeer::FK_DISTRITOESCOLAR_ID); $criteria->addSelectColumn(EstablecimientoPeer::FK_ORGANIZACION_ID);
participants (1)
-
commits@pressenter.com.ar