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

/**
 * BaseCO_EJECUCION_CONTRATO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_ejecucion_contrato
 * @property integer $id_contrato
 * @property timestamp $fecha_ini
 * @property timestamp $fecha_fin
 * @property timestamp $fecha_ejecucion
 * @property integer $num_factura
 * @property timestamp $fecha_factura
 * @property integer $valor
 * @property string $obligaciones
 * @property string $observaciones
 * @property CO_CONTRATO $CO_CONTRATO
 * 
 * @method integer               getIdEjecucionContrato()   Returns the current record's "id_ejecucion_contrato" value
 * @method integer               getIdContrato()            Returns the current record's "id_contrato" value
 * @method timestamp             getFechaIni()              Returns the current record's "fecha_ini" value
 * @method timestamp             getFechaFin()              Returns the current record's "fecha_fin" value
 * @method timestamp             getFechaEjecucion()        Returns the current record's "fecha_ejecucion" value
 * @method integer               getNumFactura()            Returns the current record's "num_factura" value
 * @method timestamp             getFechaFactura()          Returns the current record's "fecha_factura" value
 * @method integer               getValor()                 Returns the current record's "valor" value
 * @method string                getObligaciones()          Returns the current record's "obligaciones" value
 * @method string                getObservaciones()         Returns the current record's "observaciones" value
 * @method CO_CONTRATO           getCOCONTRATO()            Returns the current record's "CO_CONTRATO" value
 * @method CO_EJECUCION_CONTRATO setIdEjecucionContrato()   Sets the current record's "id_ejecucion_contrato" value
 * @method CO_EJECUCION_CONTRATO setIdContrato()            Sets the current record's "id_contrato" value
 * @method CO_EJECUCION_CONTRATO setFechaIni()              Sets the current record's "fecha_ini" value
 * @method CO_EJECUCION_CONTRATO setFechaFin()              Sets the current record's "fecha_fin" value
 * @method CO_EJECUCION_CONTRATO setFechaEjecucion()        Sets the current record's "fecha_ejecucion" value
 * @method CO_EJECUCION_CONTRATO setNumFactura()            Sets the current record's "num_factura" value
 * @method CO_EJECUCION_CONTRATO setFechaFactura()          Sets the current record's "fecha_factura" value
 * @method CO_EJECUCION_CONTRATO setValor()                 Sets the current record's "valor" value
 * @method CO_EJECUCION_CONTRATO setObligaciones()          Sets the current record's "obligaciones" value
 * @method CO_EJECUCION_CONTRATO setObservaciones()         Sets the current record's "observaciones" value
 * @method CO_EJECUCION_CONTRATO setCOCONTRATO()            Sets the current record's "CO_CONTRATO" 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_EJECUCION_CONTRATO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_EJECUCION_CONTRATO');
        $this->hasColumn('id_ejecucion_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('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_ejecucion', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('num_factura', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_factura', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('obligaciones', 'string', 4000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('observaciones', 'string', 4000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
    }

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