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

/**
 * BaseCOM_PAGO_EGRESO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_pago_egreso
 * @property integer $id_cuenta
 * @property integer $no_pago
 * @property integer $id_anhos
 * @property timestamp $fecha_pago
 * @property decimal $valor_neto
 * @property string $estado
 * @property timestamp $fecha_anulacion
 * @property string $motivo_anulacion
 * @property string $observaciones
 * @property COM_CUENTA $COM_CUENTA
 * @property Doctrine_Collection $COM_REINTEGRO
 * @property Doctrine_Collection $COM_REGISTRO_GASTO
 * @property Doctrine_Collection $COM_RADICADO
 * @property Doctrine_Collection $COM_CUMPLIDO
 * @property Doctrine_Collection $COM_CIERRE
 * 
 * @method integer             getIdPagoEgreso()       Returns the current record's "id_pago_egreso" value
 * @method integer             getIdCuenta()           Returns the current record's "id_cuenta" value
 * @method integer             getNoPago()             Returns the current record's "no_pago" value
 * @method integer             getIdAnhos()            Returns the current record's "id_anhos" value
 * @method timestamp           getFechaPago()          Returns the current record's "fecha_pago" value
 * @method decimal             getValorNeto()          Returns the current record's "valor_neto" value
 * @method string              getEstado()             Returns the current record's "estado" value
 * @method timestamp           getFechaAnulacion()     Returns the current record's "fecha_anulacion" value
 * @method string              getMotivoAnulacion()    Returns the current record's "motivo_anulacion" value
 * @method string              getObservaciones()      Returns the current record's "observaciones" value
 * @method COM_CUENTA          getCOMCUENTA()          Returns the current record's "COM_CUENTA" value
 * @method Doctrine_Collection getCOMREINTEGRO()       Returns the current record's "COM_REINTEGRO" collection
 * @method Doctrine_Collection getCOMREGISTROGASTO()   Returns the current record's "COM_REGISTRO_GASTO" collection
 * @method Doctrine_Collection getCOMRADICADO()        Returns the current record's "COM_RADICADO" collection
 * @method Doctrine_Collection getCOMCUMPLIDO()        Returns the current record's "COM_CUMPLIDO" collection
 * @method Doctrine_Collection getCOMCIERRE()          Returns the current record's "COM_CIERRE" collection
 * @method COM_PAGO_EGRESO     setIdPagoEgreso()       Sets the current record's "id_pago_egreso" value
 * @method COM_PAGO_EGRESO     setIdCuenta()           Sets the current record's "id_cuenta" value
 * @method COM_PAGO_EGRESO     setNoPago()             Sets the current record's "no_pago" value
 * @method COM_PAGO_EGRESO     setIdAnhos()            Sets the current record's "id_anhos" value
 * @method COM_PAGO_EGRESO     setFechaPago()          Sets the current record's "fecha_pago" value
 * @method COM_PAGO_EGRESO     setValorNeto()          Sets the current record's "valor_neto" value
 * @method COM_PAGO_EGRESO     setEstado()             Sets the current record's "estado" value
 * @method COM_PAGO_EGRESO     setFechaAnulacion()     Sets the current record's "fecha_anulacion" value
 * @method COM_PAGO_EGRESO     setMotivoAnulacion()    Sets the current record's "motivo_anulacion" value
 * @method COM_PAGO_EGRESO     setObservaciones()      Sets the current record's "observaciones" value
 * @method COM_PAGO_EGRESO     setCOMCUENTA()          Sets the current record's "COM_CUENTA" value
 * @method COM_PAGO_EGRESO     setCOMREINTEGRO()       Sets the current record's "COM_REINTEGRO" collection
 * @method COM_PAGO_EGRESO     setCOMREGISTROGASTO()   Sets the current record's "COM_REGISTRO_GASTO" collection
 * @method COM_PAGO_EGRESO     setCOMRADICADO()        Sets the current record's "COM_RADICADO" collection
 * @method COM_PAGO_EGRESO     setCOMCUMPLIDO()        Sets the current record's "COM_CUMPLIDO" collection
 * @method COM_PAGO_EGRESO     setCOMCIERRE()          Sets the current record's "COM_CIERRE" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOM_PAGO_EGRESO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_PAGO_EGRESO');
        $this->hasColumn('id_pago_egreso', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_cuenta', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_pago', '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_pago', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor_neto', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'string', 1, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_anulacion', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo_anulacion', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('valor_retencion', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasMany('COM_REINTEGRO', array(
             'local' => 'id_pago_egreso',
             'foreign' => 'id_pago_egreso'));

        $this->hasMany('COM_REGISTRO_GASTO', array(
             'local' => 'id_pago_egreso',
             'foreign' => 'id_pago_egreso'));

        $this->hasMany('COM_RADICADO', array(
             'local' => 'id_pago_egreso',
             'foreign' => 'id_pago_egreso'));

        $this->hasMany('COM_CUMPLIDO', array(
             'local' => 'id_pago_egreso',
             'foreign' => 'id_pago_egreso'));

        $this->hasMany('COM_CIERRE', array(
             'local' => 'id_pago_egreso',
             'foreign' => 'id_pago_egreso'));
    }
}