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

/**
 * BaseCO_LEGALIZA_CONTRATO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_legaliza_contrato
 * @property integer $id_contrato
 * @property integer $id_rp
 * @property timestamp $fecha_aprueba_poliza
 * @property timestamp $fecha_inicio
 * @property integer $plazo_dias
 * @property timestamp $fecha_terminacion
 * @property string $adjunto_contrato
 * @property timestamp $fecha_liquidacion
 * @property CO_CONTRATO $CO_CONTRATO
 * 
 * @method integer              getIdLegalizaContrato()   Returns the current record's "id_legaliza_contrato" value
 * @method integer              getIdContrato()           Returns the current record's "id_contrato" value
 * @method integer              getIdRp()                 Returns the current record's "id_rp" value
 * @method timestamp            getFechaApruebaPoliza()   Returns the current record's "fecha_aprueba_poliza" value
 * @method timestamp            getFechaInicio()          Returns the current record's "fecha_inicio" value
 * @method integer              getPlazoDias()            Returns the current record's "plazo_dias" value
 * @method timestamp            getFechaTerminacion()     Returns the current record's "fecha_terminacion" value
 * @method string               getAdjuntoContrato()      Returns the current record's "adjunto_contrato" value
 * @method timestamp            getFechaLiquidacion()     Returns the current record's "fecha_liquidacion" value
 * @method CO_CONTRATO          getCOCONTRATO()           Returns the current record's "CO_CONTRATO" value
 * @method CO_LEGALIZA_CONTRATO setIdLegalizaContrato()   Sets the current record's "id_legaliza_contrato" value
 * @method CO_LEGALIZA_CONTRATO setIdContrato()           Sets the current record's "id_contrato" value
 * @method CO_LEGALIZA_CONTRATO setIdRp()                 Sets the current record's "id_rp" value
 * @method CO_LEGALIZA_CONTRATO setFechaApruebaPoliza()   Sets the current record's "fecha_aprueba_poliza" value
 * @method CO_LEGALIZA_CONTRATO setFechaInicio()          Sets the current record's "fecha_inicio" value
 * @method CO_LEGALIZA_CONTRATO setPlazoDias()            Sets the current record's "plazo_dias" value
 * @method CO_LEGALIZA_CONTRATO setFechaTerminacion()     Sets the current record's "fecha_terminacion" value
 * @method CO_LEGALIZA_CONTRATO setAdjuntoContrato()      Sets the current record's "adjunto_contrato" value
 * @method CO_LEGALIZA_CONTRATO setFechaLiquidacion()     Sets the current record's "fecha_liquidacion" value
 * @method CO_LEGALIZA_CONTRATO setCOCONTRATO()           Sets the current record's "CO_CONTRATO" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCO_LEGALIZA_CONTRATO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_LEGALIZA_CONTRATO');
        $this->hasColumn('id_legaliza_contrato', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_contrato', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_rp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_aprueba_poliza', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_inicio', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_terminacion', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('adjunto_contrato', 'string', 512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
        $this->hasColumn('fecha_liquidacion', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('adjunto_poliza', 'string',512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
        $this->hasColumn('adjunto_rp', 'string',512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
        $this->hasColumn('vigencia_rp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('rp_sgr', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_firma_secop', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        
    }

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