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

/**
 * BaseCOM_CUMPLIDO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cumplido
 * @property integer $id_pago_egreso
 * @property integer $id_anhos
 * @property timestamp $fecha_cumplido
 * @property timestamp $fecha_inicio
 * @property timestamp $fecha_fin
 * @property decimal $dias_cumplido
 * @property string $observaciones
 * @property integer $id_mae_ter
 * @property COM_PAGO_EGRESO $COM_PAGO_EGRESO
 * @property INTERCEROS $INTERCEROS
 * 
 * @method integer         getIdCumplido()      Returns the current record's "id_cumplido" value
 * @method integer         getIdPagoEgreso()    Returns the current record's "id_pago_egreso" value
 * @method integer         getIdAnhos()         Returns the current record's "id_anhos" value
 * @method timestamp       getFechaCumplido()   Returns the current record's "fecha_cumplido" value
 * @method timestamp       getFechaInicio()     Returns the current record's "fecha_inicio" value
 * @method timestamp       getFechaFin()        Returns the current record's "fecha_fin" value
 * @method decimal         getDiasCumplido()    Returns the current record's "dias_cumplido" value
 * @method string          getObservaciones()   Returns the current record's "observaciones" value
 * @method integer         getIdMaeTer()        Returns the current record's "id_mae_ter" value
 * @method COM_PAGO_EGRESO getCOMPAGOEGRESO()   Returns the current record's "COM_PAGO_EGRESO" value
 * @method INTERCEROS      getINTERCEROS()      Returns the current record's "INTERCEROS" value
 * @method COM_CUMPLIDO    setIdCumplido()      Sets the current record's "id_cumplido" value
 * @method COM_CUMPLIDO    setIdPagoEgreso()    Sets the current record's "id_pago_egreso" value
 * @method COM_CUMPLIDO    setIdAnhos()         Sets the current record's "id_anhos" value
 * @method COM_CUMPLIDO    setFechaCumplido()   Sets the current record's "fecha_cumplido" value
 * @method COM_CUMPLIDO    setFechaInicio()     Sets the current record's "fecha_inicio" value
 * @method COM_CUMPLIDO    setFechaFin()        Sets the current record's "fecha_fin" value
 * @method COM_CUMPLIDO    setDiasCumplido()    Sets the current record's "dias_cumplido" value
 * @method COM_CUMPLIDO    setObservaciones()   Sets the current record's "observaciones" value
 * @method COM_CUMPLIDO    setIdMaeTer()        Sets the current record's "id_mae_ter" value
 * @method COM_CUMPLIDO    setCOMPAGOEGRESO()   Sets the current record's "COM_PAGO_EGRESO" value
 * @method COM_CUMPLIDO    setINTERCEROS()      Sets the current record's "INTERCEROS" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOM_CUMPLIDO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_CUMPLIDO');
        $this->hasColumn('id_cumplido', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_pago_egreso', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_anhos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_cumplido', 'timestamp', 7, array(
             'notnull' => true,
             '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_fin', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('dias_cumplido', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));
    }
}