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

/**
 * BaseCO_LIQUIDA_CONTRATO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_liquida_contrato
 * @property integer $id_firma_liquida
 * @property timestamp $fecha_informe
 * @property timestamp $fecha_liquida
 * @property string $representante_legal
 * @property integer $valor_cdp
 * @property string $ejecucion_financiera
 * @property string $concepto_final
 * @property integer $id_contrato
 * @property CO_CONTRATO $CO_CONTRATO
 * @property CO_FIRMA_LIQUIDA $CO_FIRMA_LIQUIDA
 * 
 * @method integer             getIdLiquidaContrato()    Returns the current record's "id_liquida_contrato" value
 * @method integer             getIdFirmaLiquida()       Returns the current record's "id_firma_liquida" value
 * @method timestamp           getFechaInforme()         Returns the current record's "fecha_informe" value
 * @method timestamp           getFechaLiquida()         Returns the current record's "fecha_liquida" value
 * @method string              getRepresentanteLegal()   Returns the current record's "representante_legal" value
 * @method integer             getValorCdp()             Returns the current record's "valor_cdp" value
 * @method string              getEjecucionFinanciera()  Returns the current record's "ejecucion_financiera" value
 * @method string              getConceptoFinal()        Returns the current record's "concepto_final" value
 * @method integer             getIdContrato()           Returns the current record's "id_contrato" value
 * @method CO_CONTRATO         getCOCONTRATO()           Returns the current record's "CO_CONTRATO" value
 * @method CO_FIRMA_LIQUIDA    getCOFIRMALIQUIDA()       Returns the current record's "CO_FIRMA_LIQUIDA" value
 * @method CO_LIQUIDA_CONTRATO setIdLiquidaContrato()    Sets the current record's "id_liquida_contrato" value
 * @method CO_LIQUIDA_CONTRATO setIdFirmaLiquida()       Sets the current record's "id_firma_liquida" value
 * @method CO_LIQUIDA_CONTRATO setFechaInforme()         Sets the current record's "fecha_informe" value
 * @method CO_LIQUIDA_CONTRATO setFechaLiquida()         Sets the current record's "fecha_liquida" value
 * @method CO_LIQUIDA_CONTRATO setRepresentanteLegal()   Sets the current record's "representante_legal" value
 * @method CO_LIQUIDA_CONTRATO setValorCdp()             Sets the current record's "valor_cdp" value
 * @method CO_LIQUIDA_CONTRATO setEjecucionFinanciera()  Sets the current record's "ejecucion_financiera" value
 * @method CO_LIQUIDA_CONTRATO setConceptoFinal()        Sets the current record's "concepto_final" value
 * @method CO_LIQUIDA_CONTRATO setIdContrato()           Sets the current record's "id_contrato" value
 * @method CO_LIQUIDA_CONTRATO setCOCONTRATO()           Sets the current record's "CO_CONTRATO" value
 * @method CO_LIQUIDA_CONTRATO setCOFIRMALIQUIDA()       Sets the current record's "CO_FIRMA_LIQUIDA" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCO_LIQUIDA_CONTRATO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_LIQUIDA_CONTRATO');
        $this->hasColumn('id_liquida_contrato', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_firma_liquida', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_informe', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_liquida', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('representante_legal', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('valor_cdp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ejecucion_financiera', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('concepto_final', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_contrato', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('CO_FIRMA_LIQUIDA', array(
             'local' => 'id_firma_liquida',
             'foreign' => 'id_firma_liquida'));
    }
}