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

/**
 * BasePR_REINTEGRO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_reintegro
 * @property integer $id_rp
 * @property integer $id_pago_obl
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property string $observaciones
 * @property string $tipo_reintegro
 * @property integer $id_mov_ban
 * @property integer $id_rc
 * @property timestamp $fecha_proceso
 * @property string $usuario
 * @property timestamp $fecha_sys
 * @property integer $estado
 * @property Doctrine_Collection $PR_DETA_REIN
 * 
 * @method integer             getIdReintegro()    Returns the current record's "id_reintegro" value
 * @method integer             getIdRp()           Returns the current record's "id_rp" value
 * @method integer             getIdPagoObl()      Returns the current record's "id_pago_obl" value
 * @method integer             getIdVigencia()     Returns the current record's "id_vigencia" value
 * @method string              getVigencia()       Returns the current record's "vigencia" value
 * @method string              getObservaciones()  Returns the current record's "observaciones" value
 * @method string              getTipoReintegro()  Returns the current record's "tipo_reintegro" value
 * @method integer             getIdMovBan()       Returns the current record's "id_mov_ban" value
 * @method integer             getIdRc()           Returns the current record's "id_rc" value
 * @method timestamp           getFechaProceso()   Returns the current record's "fecha_proceso" value
 * @method string              getUsuario()        Returns the current record's "usuario" value
 * @method timestamp           getFechaSys()       Returns the current record's "fecha_sys" value
 * @method integer             getEstado()         Returns the current record's "estado" value
 * @method Doctrine_Collection getPRDETAREIN()     Returns the current record's "PR_DETA_REIN" collection
 * @method PR_REINTEGRO        setIdReintegro()    Sets the current record's "id_reintegro" value
 * @method PR_REINTEGRO        setIdRp()           Sets the current record's "id_rp" value
 * @method PR_REINTEGRO        setIdPagoObl()      Sets the current record's "id_pago_obl" value
 * @method PR_REINTEGRO        setIdVigencia()     Sets the current record's "id_vigencia" value
 * @method PR_REINTEGRO        setVigencia()       Sets the current record's "vigencia" value
 * @method PR_REINTEGRO        setObservaciones()  Sets the current record's "observaciones" value
 * @method PR_REINTEGRO        setTipoReintegro()  Sets the current record's "tipo_reintegro" value
 * @method PR_REINTEGRO        setIdMovBan()       Sets the current record's "id_mov_ban" value
 * @method PR_REINTEGRO        setIdRc()           Sets the current record's "id_rc" value
 * @method PR_REINTEGRO        setFechaProceso()   Sets the current record's "fecha_proceso" value
 * @method PR_REINTEGRO        setUsuario()        Sets the current record's "usuario" value
 * @method PR_REINTEGRO        setFechaSys()       Sets the current record's "fecha_sys" value
 * @method PR_REINTEGRO        setEstado()         Sets the current record's "estado" value
 * @method PR_REINTEGRO        setPRDETAREIN()     Sets the current record's "PR_DETA_REIN" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_REINTEGRO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_REINTEGRO');
        $this->hasColumn('id_reintegro', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_rp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_pago_obl', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('observaciones', 'string', 3000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 3000,
             ));
        $this->hasColumn('tipo_reintegro', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mov_ban', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_rc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_sys', '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,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('PR_DETA_REIN', array(
             'local' => 'id_reintegro',
             'foreign' => 'id_reintegro'));
    }
}