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

/**
 * BaseCOM_REEMBOLSO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_reembolso
 * @property integer $id_proyecto
 * @property integer $id_anhos
 * @property integer $no_reembolso
 * @property timestamp $fecha_reembolso
 * @property integer $estado
 * @property timestamp $fecha_anulacion
 * @property string $motivo_anulacion
 * @property PROYECTOS $PROYECTOS
 * @property Doctrine_Collection $COM_DETA_REEMBOLSO
 * 
 * @method integer             getIdReembolso()        Returns the current record's "id_reembolso" value
 * @method integer             getIdProyecto()         Returns the current record's "id_proyecto" value
 * @method integer             getIdAnhos()            Returns the current record's "id_anhos" value
 * @method integer             getNoReembolso()        Returns the current record's "no_reembolso" value
 * @method timestamp           getFechaReembolso()     Returns the current record's "fecha_reembolso" value
 * @method integer             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 PROYECTOS           getPROYECTOS()          Returns the current record's "PROYECTOS" value
 * @method Doctrine_Collection getCOMDETAREEMBOLSO()   Returns the current record's "COM_DETA_REEMBOLSO" collection
 * @method COM_REEMBOLSO       setIdReembolso()        Sets the current record's "id_reembolso" value
 * @method COM_REEMBOLSO       setIdProyecto()         Sets the current record's "id_proyecto" value
 * @method COM_REEMBOLSO       setIdAnhos()            Sets the current record's "id_anhos" value
 * @method COM_REEMBOLSO       setNoReembolso()        Sets the current record's "no_reembolso" value
 * @method COM_REEMBOLSO       setFechaReembolso()     Sets the current record's "fecha_reembolso" value
 * @method COM_REEMBOLSO       setEstado()             Sets the current record's "estado" value
 * @method COM_REEMBOLSO       setFechaAnulacion()     Sets the current record's "fecha_anulacion" value
 * @method COM_REEMBOLSO       setMotivoAnulacion()    Sets the current record's "motivo_anulacion" value
 * @method COM_REEMBOLSO       setPROYECTOS()          Sets the current record's "PROYECTOS" value
 * @method COM_REEMBOLSO       setCOMDETAREEMBOLSO()   Sets the current record's "COM_DETA_REEMBOLSO" 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_REEMBOLSO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_REEMBOLSO');
        $this->hasColumn('id_reembolso', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_proyecto', '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('no_reembolso', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_reembolso', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             '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' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('doc_siif', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tope', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasMany('COM_DETA_REEMBOLSO', array(
             'local' => 'id_reembolso',
             'foreign' => 'id_reembolso'));
    }
}