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

/**
 * BaseCOM_RADICADO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_radicado
 * @property integer $id_pago_egreso
 * @property integer $id_anhos
 * @property timestamp $fecha_radicado
 * @property integer $no_folios
 * @property string $observaciones
 * @property COM_PAGO_EGRESO $COM_PAGO_EGRESO
 * 
 * @method integer         getIdRadicado()      Returns the current record's "id_radicado" 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       getFechaRadicado()   Returns the current record's "fecha_radicado" value
 * @method integer         getNoFolios()        Returns the current record's "no_folios" value
 * @method string          getObservaciones()   Returns the current record's "observaciones" value
 * @method COM_PAGO_EGRESO getCOMPAGOEGRESO()   Returns the current record's "COM_PAGO_EGRESO" value
 * @method COM_RADICADO    setIdRadicado()      Sets the current record's "id_radicado" value
 * @method COM_RADICADO    setIdPagoEgreso()    Sets the current record's "id_pago_egreso" value
 * @method COM_RADICADO    setIdAnhos()         Sets the current record's "id_anhos" value
 * @method COM_RADICADO    setFechaRadicado()   Sets the current record's "fecha_radicado" value
 * @method COM_RADICADO    setNoFolios()        Sets the current record's "no_folios" value
 * @method COM_RADICADO    setObservaciones()   Sets the current record's "observaciones" value
 * @method COM_RADICADO    setCOMPAGOEGRESO()   Sets the current record's "COM_PAGO_EGRESO" 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_RADICADO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_RADICADO');
        $this->hasColumn('id_radicado', '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_radicado', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('no_folios', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             '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,
             ));
    }

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