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

/**
 * BaseRVC_NOVEDAD_PRORR_TERMI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad_prorr_termi
 * @property integer $id_contrato
 * @property integer $id_contratista
 * @property integer $id_tipo_novedad_cont
 * @property timestamp $fecha
 * @property string $numero_doc
 * @property timestamp $fecha_doc
 * @property string $observaciones
 * @property timestamp $fecha_ini_old
 * @property timestamp $fecha_fin_old
 * @property integer $rp_anm_old
 * @property integer $rp_sgr_old
 * @property timestamp $fecha_rp_old
 * @property integer $valor_anm_old
 * @property integer $valor_sgr_old
 * @property timestamp $fecha_ini_new
 * @property timestamp $fecha_fin_new
 * @property integer $rp_anm_new
 * @property integer $rp_sgr_new
 * @property timestamp $fecha_rp_new
 * @property integer $valor_anm_new
 * @property integer $valor_sgr_new
 * @property string $adjunto
 * @property string $usuario_log
 * @property timestamp $fecha_log
 * @property RVC_CONTRATO $RVC_CONTRATO
 * @property RVC_CONTRATISTA $RVC_CONTRATISTA
 * @property RVC_TIPO_NOVEDAD_CONT $RVC_TIPO_NOVEDAD_CONT
 * 
 * @method integer                 getIdNovedadProrrTermi()    Returns the current record's "id_novedad_prorr_termi" value
 * @method integer                 getIdContrato()             Returns the current record's "id_contrato" value
 * @method integer                 getIdContratista()          Returns the current record's "id_contratista" value
 * @method integer                 getIdTipoNovedadCont()      Returns the current record's "id_tipo_novedad_cont" value
 * @method timestamp               getFecha()                  Returns the current record's "fecha" value
 * @method string                  getNumeroDoc()              Returns the current record's "numero_doc" value
 * @method timestamp               getFechaDoc()               Returns the current record's "fecha_doc" value
 * @method string                  getObservaciones()          Returns the current record's "observaciones" value
 * @method timestamp               getFechaIniOld()            Returns the current record's "fecha_ini_old" value
 * @method timestamp               getFechaFinOld()            Returns the current record's "fecha_fin_old" value
 * @method integer                 getRpAnmOld()               Returns the current record's "rp_anm_old" value
 * @method integer                 getRpSgrOld()               Returns the current record's "rp_sgr_old" value
 * @method timestamp               getFechaRpOld()             Returns the current record's "fecha_rp_old" value
 * @method integer                 getValorAnmOld()            Returns the current record's "valor_anm_old" value
 * @method integer                 getValorSgrOld()            Returns the current record's "valor_sgr_old" value
 * @method timestamp               getFechaIniNew()            Returns the current record's "fecha_ini_new" value
 * @method timestamp               getFechaFinNew()            Returns the current record's "fecha_fin_new" value
 * @method integer                 getRpAnmNew()               Returns the current record's "rp_anm_new" value
 * @method integer                 getRpSgrNew()               Returns the current record's "rp_sgr_new" value
 * @method timestamp               getFechaRpNew()             Returns the current record's "fecha_rp_new" value
 * @method integer                 getValorAnmNew()            Returns the current record's "valor_anm_new" value
 * @method integer                 getValorSgrNew()            Returns the current record's "valor_sgr_new" value
 * @method string                  getAdjunto()                Returns the current record's "adjunto" value
 * @method string                  getUsuarioLog()             Returns the current record's "usuario_log" value
 * @method timestamp               getFechaLog()               Returns the current record's "fecha_log" value
 * @method RVC_CONTRATO            getRVCCONTRATO()            Returns the current record's "RVC_CONTRATO" value
 * @method RVC_CONTRATISTA         getRVCCONTRATISTA()         Returns the current record's "RVC_CONTRATISTA" value
 * @method RVC_TIPO_NOVEDAD_CONT   getRVCTIPONOVEDADCONT()     Returns the current record's "RVC_TIPO_NOVEDAD_CONT" value
 * @method RVC_NOVEDAD_PRORR_TERMI setIdNovedadProrrTermi()    Sets the current record's "id_novedad_prorr_termi" value
 * @method RVC_NOVEDAD_PRORR_TERMI setIdContrato()             Sets the current record's "id_contrato" value
 * @method RVC_NOVEDAD_PRORR_TERMI setIdContratista()          Sets the current record's "id_contratista" value
 * @method RVC_NOVEDAD_PRORR_TERMI setIdTipoNovedadCont()      Sets the current record's "id_tipo_novedad_cont" value
 * @method RVC_NOVEDAD_PRORR_TERMI setFecha()                  Sets the current record's "fecha" value
 * @method RVC_NOVEDAD_PRORR_TERMI setNumeroDoc()              Sets the current record's "numero_doc" value
 * @method RVC_NOVEDAD_PRORR_TERMI setFechaDoc()               Sets the current record's "fecha_doc" value
 * @method RVC_NOVEDAD_PRORR_TERMI setObservaciones()          Sets the current record's "observaciones" value
 * @method RVC_NOVEDAD_PRORR_TERMI setFechaIniOld()            Sets the current record's "fecha_ini_old" value
 * @method RVC_NOVEDAD_PRORR_TERMI setFechaFinOld()            Sets the current record's "fecha_fin_old" value
 * @method RVC_NOVEDAD_PRORR_TERMI setRpAnmOld()               Sets the current record's "rp_anm_old" value
 * @method RVC_NOVEDAD_PRORR_TERMI setRpSgrOld()               Sets the current record's "rp_sgr_old" value
 * @method RVC_NOVEDAD_PRORR_TERMI setFechaRpOld()             Sets the current record's "fecha_rp_old" value
 * @method RVC_NOVEDAD_PRORR_TERMI setValorAnmOld()            Sets the current record's "valor_anm_old" value
 * @method RVC_NOVEDAD_PRORR_TERMI setValorSgrOld()            Sets the current record's "valor_sgr_old" value
 * @method RVC_NOVEDAD_PRORR_TERMI setFechaIniNew()            Sets the current record's "fecha_ini_new" value
 * @method RVC_NOVEDAD_PRORR_TERMI setFechaFinNew()            Sets the current record's "fecha_fin_new" value
 * @method RVC_NOVEDAD_PRORR_TERMI setRpAnmNew()               Sets the current record's "rp_anm_new" value
 * @method RVC_NOVEDAD_PRORR_TERMI setRpSgrNew()               Sets the current record's "rp_sgr_new" value
 * @method RVC_NOVEDAD_PRORR_TERMI setFechaRpNew()             Sets the current record's "fecha_rp_new" value
 * @method RVC_NOVEDAD_PRORR_TERMI setValorAnmNew()            Sets the current record's "valor_anm_new" value
 * @method RVC_NOVEDAD_PRORR_TERMI setValorSgrNew()            Sets the current record's "valor_sgr_new" value
 * @method RVC_NOVEDAD_PRORR_TERMI setAdjunto()                Sets the current record's "adjunto" value
 * @method RVC_NOVEDAD_PRORR_TERMI setUsuarioLog()             Sets the current record's "usuario_log" value
 * @method RVC_NOVEDAD_PRORR_TERMI setFechaLog()               Sets the current record's "fecha_log" value
 * @method RVC_NOVEDAD_PRORR_TERMI setRVCCONTRATO()            Sets the current record's "RVC_CONTRATO" value
 * @method RVC_NOVEDAD_PRORR_TERMI setRVCCONTRATISTA()         Sets the current record's "RVC_CONTRATISTA" value
 * @method RVC_NOVEDAD_PRORR_TERMI setRVCTIPONOVEDADCONT()     Sets the current record's "RVC_TIPO_NOVEDAD_CONT" 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_PRORR_TERMI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_NOVEDAD_PRORR_TERMI');
        $this->hasColumn('id_novedad_prorr_termi', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_contrato', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             '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_cont', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $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('observaciones', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('fecha_ini_old', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin_old', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('rp_anm_old', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('rp_sgr_old', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_rp_old', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor_anm_old', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_sgr_old', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_ini_new', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin_new', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('rp_anm_new', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('rp_sgr_new', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_rp_new', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor_anm_new', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_sgr_new', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('adjunto', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('usuario_log', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('aplica_rp_doble', '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_CONTRATO', array(
             'local' => 'id_contrato',
             'foreign' => 'id_contrato'));

        $this->hasOne('RVC_CONTRATISTA', array(
             'local' => 'id_contratista',
             'foreign' => 'id_contratista'));

        $this->hasOne('RVC_TIPO_NOVEDAD_CONT', array(
             'local' => 'id_tipo_novedad_cont',
             'foreign' => 'id_tipo_novedad_cont'));
    }
}