<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('RVC_NOVEDAD_CONTRATISTA', 'doctrine');

/**
 * BaseRVC_NOVEDAD_CONTRATISTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad_contratista
 * @property integer $id_contratista
 * @property integer $rut
 * @property string $adjunto_rut
 * @property integer $id_tipo_regimen
 * @property integer $mas_empleados
 * @property integer $declarante_renta
 * @property integer $pensionado
 * @property string $adjunto_pensionado
 * @property integer $id_fondo_salud
 * @property integer $id_fondo_pension
 * @property integer $id_caja_comp
 * @property integer $id_fondo_arl
 * @property integer $id_tipo_riesgo
 * @property string $adjunto_arl
 * @property timestamp $fecha_log
 * @property string $usuario_log
 * @property RVC_CONTRATISTA $RVC_CONTRATISTA
 * @property RVC_TIPO_REGIMEN $RVC_TIPO_REGIMEN
 * @property RVC_TIPO_RIESGO $RVC_TIPO_RIESGO
 * 
 * @method integer                 getIdNovedadContratista()   Returns the current record's "id_novedad_contratista" value
 * @method integer                 getIdContratista()          Returns the current record's "id_contratista" value
 * @method integer                 getRut()                    Returns the current record's "rut" value
 * @method string                  getAdjuntoRut()             Returns the current record's "adjunto_rut" value
 * @method integer                 getIdTipoRegimen()          Returns the current record's "id_tipo_regimen" value
 * @method integer                 getMasEmpleados()           Returns the current record's "mas_empleados" value
 * @method integer                 getDeclaranteRenta()        Returns the current record's "declarante_renta" value
 * @method integer                 getPensionado()             Returns the current record's "pensionado" value
 * @method string                  getAdjuntoPensionado()      Returns the current record's "adjunto_pensionado" value
 * @method integer                 getIdFondoSalud()           Returns the current record's "id_fondo_salud" value
 * @method integer                 getIdFondoPension()         Returns the current record's "id_fondo_pension" value
 * @method integer                 getIdCajaComp()             Returns the current record's "id_caja_comp" value
 * @method integer                 getIdFondoArl()             Returns the current record's "id_fondo_arl" value
 * @method integer                 getIdTipoRiesgo()           Returns the current record's "id_tipo_riesgo" value
 * @method string                  getAdjuntoArl()             Returns the current record's "adjunto_arl" value
 * @method timestamp               getFechaLog()               Returns the current record's "fecha_log" value
 * @method string                  getUsuarioLog()             Returns the current record's "usuario_log" value
 * @method RVC_CONTRATISTA         getRVCCONTRATISTA()         Returns the current record's "RVC_CONTRATISTA" value
 * @method RVC_TIPO_REGIMEN        getRVCTIPOREGIMEN()         Returns the current record's "RVC_TIPO_REGIMEN" value
 * @method RVC_TIPO_RIESGO         getRVCTIPORIESGO()          Returns the current record's "RVC_TIPO_RIESGO" value
 * @method RVC_NOVEDAD_CONTRATISTA setIdNovedadContratista()   Sets the current record's "id_novedad_contratista" value
 * @method RVC_NOVEDAD_CONTRATISTA setIdContratista()          Sets the current record's "id_contratista" value
 * @method RVC_NOVEDAD_CONTRATISTA setRut()                    Sets the current record's "rut" value
 * @method RVC_NOVEDAD_CONTRATISTA setAdjuntoRut()             Sets the current record's "adjunto_rut" value
 * @method RVC_NOVEDAD_CONTRATISTA setIdTipoRegimen()          Sets the current record's "id_tipo_regimen" value
 * @method RVC_NOVEDAD_CONTRATISTA setMasEmpleados()           Sets the current record's "mas_empleados" value
 * @method RVC_NOVEDAD_CONTRATISTA setDeclaranteRenta()        Sets the current record's "declarante_renta" value
 * @method RVC_NOVEDAD_CONTRATISTA setPensionado()             Sets the current record's "pensionado" value
 * @method RVC_NOVEDAD_CONTRATISTA setAdjuntoPensionado()      Sets the current record's "adjunto_pensionado" value
 * @method RVC_NOVEDAD_CONTRATISTA setIdFondoSalud()           Sets the current record's "id_fondo_salud" value
 * @method RVC_NOVEDAD_CONTRATISTA setIdFondoPension()         Sets the current record's "id_fondo_pension" value
 * @method RVC_NOVEDAD_CONTRATISTA setIdCajaComp()             Sets the current record's "id_caja_comp" value
 * @method RVC_NOVEDAD_CONTRATISTA setIdFondoArl()             Sets the current record's "id_fondo_arl" value
 * @method RVC_NOVEDAD_CONTRATISTA setIdTipoRiesgo()           Sets the current record's "id_tipo_riesgo" value
 * @method RVC_NOVEDAD_CONTRATISTA setAdjuntoArl()             Sets the current record's "adjunto_arl" value
 * @method RVC_NOVEDAD_CONTRATISTA setFechaLog()               Sets the current record's "fecha_log" value
 * @method RVC_NOVEDAD_CONTRATISTA setUsuarioLog()             Sets the current record's "usuario_log" value
 * @method RVC_NOVEDAD_CONTRATISTA setRVCCONTRATISTA()         Sets the current record's "RVC_CONTRATISTA" value
 * @method RVC_NOVEDAD_CONTRATISTA setRVCTIPOREGIMEN()         Sets the current record's "RVC_TIPO_REGIMEN" value
 * @method RVC_NOVEDAD_CONTRATISTA setRVCTIPORIESGO()          Sets the current record's "RVC_TIPO_RIESGO" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseRVC_NOVEDAD_CONTRATISTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_NOVEDAD_CONTRATISTA');
        $this->hasColumn('id_novedad_contratista', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_contratista', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('rut', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('adjunto_rut', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('id_tipo_regimen', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('mas_empleados', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('declarante_renta', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('pensionado', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('adjunto_pensionado', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('id_fondo_salud', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_fondo_pension', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_caja_comp', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_fondo_arl', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_riesgo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('adjunto_arl', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario_log', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tip_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('razon_social', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('correo', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('id_ciudad', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_afilia_arl', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('tarifa_caja_comp', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('adjunto_caja_comp', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('adjunto_fondo_salud', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('adjunto_fondo_pension', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('profesion', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('fecha_afilia_salud', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_afilia_pension', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('por_administrador', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('RVC_CONTRATISTA', array(
             'local' => 'id_contratista',
             'foreign' => 'id_contratista'));

        $this->hasOne('RVC_TIPO_REGIMEN', array(
             'local' => 'id_tipo_regimen',
             'foreign' => 'id_tipo_regimen'));

        $this->hasOne('RVC_TIPO_RIESGO', array(
             'local' => 'id_tipo_riesgo',
             'foreign' => 'id_tipo_riesgo'));
    }
}