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

/**
 * BaseRVC_CONTRATO
 * 
 * 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_CONTRATO         setIdContrato()            Sets the current record's "id_contrato" value
 * @method RVC_CONTRATO         setIdContratista()         Sets the current record's "id_contratista" value
 * @method RVC_CONTRATO         setNumContrato()           Sets the current record's "num_contrato" value
 * @method RVC_CONTRATO         setIdAnhos()               Sets the current record's "id_anhos" value
 * @method RVC_CONTRATO         setFechaContrato()         Sets the current record's "fecha_contrato" value
 * @method RVC_CONTRATO         setObjeto()                Sets the current record's "objeto" value
 * @method RVC_CONTRATO         setObligaciones()          Sets the current record's "obligaciones" value
 * @method RVC_CONTRATO         setEstado()                Sets the current record's "estado" value
 * @method RVC_CONTRATO         setRpAnm()                 Sets the current record's "rp_anm" value
 * @method RVC_CONTRATO         setRpSgr()                 Sets the current record's "rp_sgr" value
 * @method RVC_CONTRATO         setFechaRp()               Sets the current record's "fecha_rp" value
 * @method RVC_CONTRATO         setFechaPoliza()           Sets the current record's "fecha_poliza" value
 * @method RVC_CONTRATO         setValorAnm()              Sets the current record's "valor_anm" value
 * @method RVC_CONTRATO         setCdpAnm()                Sets the current record's "cdp_anm" value
 * @method RVC_CONTRATO         setFechaCdpAnm()           Sets the current record's "fecha_cdp_anm" value
 * @method RVC_CONTRATO         setValorSgr()              Sets the current record's "valor_sgr" value
 * @method RVC_CONTRATO         setCdpSgr()                Sets the current record's "cdp_sgr" value
 * @method RVC_CONTRATO         setFechaCdpSgr()           Sets the current record's "fecha_cdp_sgr" value
 * @method RVC_CONTRATO         setDependencia()           Sets the current record's "dependencia" value
 * @method RVC_CONTRATO         setMesesPlazo()            Sets the current record's "meses_plazo" value
 * @method RVC_CONTRATO         setDiasPlazo()             Sets the current record's "dias_plazo" value
 * @method RVC_CONTRATO         setFechaPlazo()            Sets the current record's "fecha_plazo" value
 * @method RVC_CONTRATO         setIdSupervisor()          Sets the current record's "id_supervisor" value
 * @method RVC_CONTRATO         setIdApoyoSupervisor()     Sets the current record's "id_apoyo_supervisor" value
 * @method RVC_CONTRATO         setRVCCONTRATISTA()        Sets the current record's "RVC_CONTRATISTA" value
 * @method RVC_CONTRATO         setRVCSUPERVISOR()         Sets the current record's "RVC_SUPERVISOR" value
 * @method RVC_CONTRATO         setRVCAPOYOSUPERVISOR()    Sets the current record's "RVC_APOYO_SUPERVISOR" value
 * @method RVC_CONTRATO         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_CONTRATO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_CONTRATO');
        $this->hasColumn('id_contrato', '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('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_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('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('adjunto_contrato', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('adjunto_poliza', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $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,
             ));
    }

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

        $this->hasOne('RVC_SUPERVISOR', array(
             'local' => 'id_supervisor',
             'foreign' => 'id_supervisor'));

        $this->hasOne('RVC_APOYO_SUPERVISOR', array(
             'local' => 'id_apoyo_supervisor',
             'foreign' => 'id_apoyo_supervisor'));

        $this->hasMany('RVC_NOVEDAD_SUPR_APOY', array(
             'local' => 'id_contrato',
             'foreign' => 'id_contrato'));
    }
}