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

/**
 * BaseRVC_NOVEDAD_SUSPENSION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad_suspension
 * @property integer $id_contratista
 * @property integer $id_tipo_novedad_suspension
 * @property timestamp $fecha_ini
 * @property timestamp $fecha_fin
 * @property string $adjunto
 * @property RVC_CONTRATISTA $RVC_CONTRATISTA
 * @property RVC_TIPO_NOVEDAD_SUSPENSION $RVC_TIPO_NOVEDAD_SUSPENSION
 * 
 * @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_SUSPENSION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_NOVEDAD_SUSPENSION');
        $this->hasColumn('id_novedad_suspension', '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('id_tipo_novedad_suspension', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_ini', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('adjunto', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => true,
             '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('observacion', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2000,
             ));
        $this->hasColumn('numero_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_doc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_contrato', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('RVC_TIPO_NOVEDAD_SUSPENSION', array(
             'local' => 'id_tipo_novedad_suspension',
             'foreign' => 'id_tipo_novedad_suspension'));
    }
}