<?php

// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('RVC_ACTA_INICIO', 'doctrine');

/**
 * BaseRVC_ACTA_INICIO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_contrato
 * @property integer $id_contratista
 * @property string $num_contrato
 * @property integer $id_anhos
 * @property timestamp $fecha_contrato
 * @property string $objeto
 * @property string $obligaciones
 * @property integer $estado
 * @property integer $rp_anm
 * @property integer $rp_sgr
 * @property timestamp $fecha_rp
 * @property timestamp $fecha_poliza
 * @property integer $valor_anm
 * @property integer $cdp_anm
 * @property timestamp $fecha_cdp_anm
 * @property integer $valor_sgr
 * @property integer $cdp_sgr
 * @property timestamp $fecha_cdp_sgr
 * @property string $dependencia
 * @property integer $meses_plazo
 * @property integer $dias_plazo
 * @property timestamp $fecha_plazo
 * @property integer $id_supervisor
 * @property integer $id_apoyo_supervisor
 * @property RVC_CONTRATISTA $RVC_CONTRATISTA
 * @property RVC_SUPERVISOR $RVC_SUPERVISOR
 * @property RVC_APOYO_SUPERVISOR $RVC_APOYO_SUPERVISOR
 * @property Doctrine_Collection $RVC_NOVEDAD_SUPR_APOY
 * 
 * @method integer              getIdContrato()            Returns the current record's "id_contrato" value
 * @method integer              getIdContratista()         Returns the current record's "id_contratista" value
 * @method string               getNumContrato()           Returns the current record's "num_contrato" value
 * @method integer              getIdAnhos()               Returns the current record's "id_anhos" value
 * @method timestamp            getFechaContrato()         Returns the current record's "fecha_contrato" value
 * @method string               getObjeto()                Returns the current record's "objeto" value
 * @method string               getObligaciones()          Returns the current record's "obligaciones" value
 * @method integer              getEstado()                Returns the current record's "estado" value
 * @method integer              getRpAnm()                 Returns the current record's "rp_anm" value
 * @method integer              getRpSgr()                 Returns the current record's "rp_sgr" value
 * @method timestamp            getFechaRp()               Returns the current record's "fecha_rp" value
 * @method timestamp            getFechaPoliza()           Returns the current record's "fecha_poliza" value
 * @method integer              getValorAnm()              Returns the current record's "valor_anm" value
 * @method integer              getCdpAnm()                Returns the current record's "cdp_anm" value
 * @method timestamp            getFechaCdpAnm()           Returns the current record's "fecha_cdp_anm" value
 * @method integer              getValorSgr()              Returns the current record's "valor_sgr" value
 * @method integer              getCdpSgr()                Returns the current record's "cdp_sgr" value
 * @method timestamp            getFechaCdpSgr()           Returns the current record's "fecha_cdp_sgr" value
 * @method string               getDependencia()           Returns the current record's "dependencia" value
 * @method integer              getMesesPlazo()            Returns the current record's "meses_plazo" value
 * @method integer              getDiasPlazo()             Returns the current record's "dias_plazo" value
 * @method timestamp            getFechaPlazo()            Returns the current record's "fecha_plazo" value
 * @method integer              getIdSupervisor()          Returns the current record's "id_supervisor" value
 * @method integer              getIdApoyoSupervisor()     Returns the current record's "id_apoyo_supervisor" value
 * @method RVC_CONTRATISTA      getRVCCONTRATISTA()        Returns the current record's "RVC_CONTRATISTA" value
 * @method RVC_SUPERVISOR       getRVCSUPERVISOR()         Returns the current record's "RVC_SUPERVISOR" value
 * @method RVC_APOYO_SUPERVISOR getRVCAPOYOSUPERVISOR()    Returns the current record's "RVC_APOYO_SUPERVISOR" value
 * @method Doctrine_Collection  getRVCNOVEDADSUPRAPOY()    Returns the current record's "RVC_NOVEDAD_SUPR_APOY" collection
 * @method RVC_ACTA_INICIO         setIdContrato()            Sets the current record's "id_contrato" value
 * @method RVC_ACTA_INICIO         setIdContratista()         Sets the current record's "id_contratista" value
 * @method RVC_ACTA_INICIO         setNumContrato()           Sets the current record's "num_contrato" value
 * @method RVC_ACTA_INICIO         setIdAnhos()               Sets the current record's "id_anhos" value
 * @method RVC_ACTA_INICIO         setFechaContrato()         Sets the current record's "fecha_contrato" value
 * @method RVC_ACTA_INICIO         setObjeto()                Sets the current record's "objeto" value
 * @method RVC_ACTA_INICIO         setObligaciones()          Sets the current record's "obligaciones" value
 * @method RVC_ACTA_INICIO         setEstado()                Sets the current record's "estado" value
 * @method RVC_ACTA_INICIO         setRpAnm()                 Sets the current record's "rp_anm" value
 * @method RVC_ACTA_INICIO         setRpSgr()                 Sets the current record's "rp_sgr" value
 * @method RVC_ACTA_INICIO         setFechaRp()               Sets the current record's "fecha_rp" value
 * @method RVC_ACTA_INICIO         setFechaPoliza()           Sets the current record's "fecha_poliza" value
 * @method RVC_ACTA_INICIO         setValorAnm()              Sets the current record's "valor_anm" value
 * @method RVC_ACTA_INICIO         setCdpAnm()                Sets the current record's "cdp_anm" value
 * @method RVC_ACTA_INICIO         setFechaCdpAnm()           Sets the current record's "fecha_cdp_anm" value
 * @method RVC_ACTA_INICIO         setValorSgr()              Sets the current record's "valor_sgr" value
 * @method RVC_ACTA_INICIO         setCdpSgr()                Sets the current record's "cdp_sgr" value
 * @method RVC_ACTA_INICIO         setFechaCdpSgr()           Sets the current record's "fecha_cdp_sgr" value
 * @method RVC_ACTA_INICIO         setDependencia()           Sets the current record's "dependencia" value
 * @method RVC_ACTA_INICIO         setMesesPlazo()            Sets the current record's "meses_plazo" value
 * @method RVC_ACTA_INICIO         setDiasPlazo()             Sets the current record's "dias_plazo" value
 * @method RVC_ACTA_INICIO         setFechaPlazo()            Sets the current record's "fecha_plazo" value
 * @method RVC_ACTA_INICIO         setIdSupervisor()          Sets the current record's "id_supervisor" value
 * @method RVC_ACTA_INICIO         setIdApoyoSupervisor()     Sets the current record's "id_apoyo_supervisor" value
 * @method RVC_ACTA_INICIO         setRVCCONTRATISTA()        Sets the current record's "RVC_CONTRATISTA" value
 * @method RVC_ACTA_INICIO         setRVCSUPERVISOR()         Sets the current record's "RVC_SUPERVISOR" value
 * @method RVC_ACTA_INICIO         setRVCAPOYOSUPERVISOR()    Sets the current record's "RVC_APOYO_SUPERVISOR" value
 * @method RVC_ACTA_INICIO         setRVCNOVEDADSUPRAPOY()    Sets the current record's "RVC_NOVEDAD_SUPR_APOY" collection
 * 
 * @package    radicacionVirtualCuentas
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRVC_ACTA_INICIO extends sfDoctrineRecord {

    public function setTableDefinition() {
        $this->setTableName('RVC_ACTA_INICIO');
        $this->hasColumn('id_acta_inicio', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));
        $this->hasColumn('adjunto', 'string', 2000, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 2000,
        ));
        $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_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('num_contrato', 'string', 20, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('id_anhos', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('fecha_contrato', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('objeto', 'string', 4000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 4000,
        ));
        $this->hasColumn('obligaciones', 'string', 4000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 4000,
        ));
        $this->hasColumn('estado', 'integer', 1, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '1 ',
            'primary' => false,
            'length' => 1,
        ));
        $this->hasColumn('rp_anm', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('rp_sgr', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('fecha_rp', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('fecha_rp_sgr', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_poliza', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('valor_anm', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0 ',
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('cdp_anm', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('fecha_cdp_anm', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('valor_sgr', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0 ',
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('cdp_sgr', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('fecha_cdp_sgr', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('dependencia', 'string', 20, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('meses_plazo', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('dias_plazo', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('fecha_plazo', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('id_supervisor', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('id_apoyo_supervisor', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            '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('fecha_inicio_actividades', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('valor_ejecutado', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0 ',
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('numero_pago', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_mensualizado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_area', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_contrato', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ciudad', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cargo', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('adjunto_poliza', 'string', 1000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1000,
        ));
        $this->hasColumn('aplica_inicio_dif', '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'));
    }

}
