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

/**
 * BasePR_RP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_tercero
 * @property integer $id_pago
 * @property string $objeto
 * @property string $observaciones
 * @property integer $id_cdp
 * @property timestamp $fecha
 * @property timestamp $fecha_proceso
 * @property integer $estado
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property string $usuariolog
 * @property INTERCEROS $INTERCEROS
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer    getId()            Returns the current record's "id" value
 * @method integer    getIdTercero()     Returns the current record's "id_tercero" value
 * @method integer    getIdPago()        Returns the current record's "id_pago" value
 * @method string     getObjeto()        Returns the current record's "objeto" value
 * @method string     getObservaciones() Returns the current record's "observaciones" value
 * @method integer    getIdCdp()         Returns the current record's "id_cdp" value
 * @method timestamp  getFecha()         Returns the current record's "fecha" value
 * @method timestamp  getFechaProceso()  Returns the current record's "fecha_proceso" value
 * @method integer    getEstado()        Returns the current record's "estado" value
 * @method integer    getIdVigencia()    Returns the current record's "id_vigencia" value
 * @method string     getVigencia()      Returns the current record's "vigencia" value
 * @method string     getUsuariolog()    Returns the current record's "usuariolog" value
 * @method INTERCEROS getINTERCEROS()    Returns the current record's "INTERCEROS" value
 * @method VIGENCIA   getVIGENCIA()      Returns the current record's "VIGENCIA" value
 * @method PR_RP      setId()            Sets the current record's "id" value
 * @method PR_RP      setIdTercero()     Sets the current record's "id_tercero" value
 * @method PR_RP      setIdPago()        Sets the current record's "id_pago" value
 * @method PR_RP      setObjeto()        Sets the current record's "objeto" value
 * @method PR_RP      setObservaciones() Sets the current record's "observaciones" value
 * @method PR_RP      setIdCdp()         Sets the current record's "id_cdp" value
 * @method PR_RP      setFecha()         Sets the current record's "fecha" value
 * @method PR_RP      setFechaProceso()  Sets the current record's "fecha_proceso" value
 * @method PR_RP      setEstado()        Sets the current record's "estado" value
 * @method PR_RP      setIdVigencia()    Sets the current record's "id_vigencia" value
 * @method PR_RP      setVigencia()      Sets the current record's "vigencia" value
 * @method PR_RP      setUsuariolog()    Sets the current record's "usuariolog" value
 * @method PR_RP      setINTERCEROS()    Sets the current record's "INTERCEROS" value
 * @method PR_RP      setVIGENCIA()      Sets the current record's "VIGENCIA" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_RP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_RP');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tercero', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_pago', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('objeto', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('observaciones', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('id_cdp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('usuariolog', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('VIGENCIA', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));
    }
}