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

/**
 * BasePR_SOLICITUD_CDP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_solicitud_cdp
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property string $objeto
 * @property string $observaciones
 * @property integer $estado
 * @property decimal $valor_total
 * @property timestamp $fecha_proceso
 * @property integer $firma_ordenador
 * @property integer $vobo
 * @property integer $tipo_solicitud
 * @property timestamp $fechalog
 * @property string $usuariolog
 * @property integer $id_cdp
 * @property integer $id_area_ordenadora
 * @property string $id_comision
 * @property integer $id_frente_trab
 * @property Doctrine_Collection $PR_SOLIC_CDP_DETA
 * 
 * @method integer             getIdSolicitudCdp()     Returns the current record's "id_solicitud_cdp" value
 * @method integer             getIdVigencia()         Returns the current record's "id_vigencia" value
 * @method string              getVigencia()           Returns the current record's "vigencia" value
 * @method string              getObjeto()             Returns the current record's "objeto" value
 * @method string              getObservaciones()      Returns the current record's "observaciones" value
 * @method integer             getEstado()             Returns the current record's "estado" value
 * @method decimal             getValorTotal()         Returns the current record's "valor_total" value
 * @method timestamp           getFechaProceso()       Returns the current record's "fecha_proceso" value
 * @method integer             getFirmaOrdenador()     Returns the current record's "firma_ordenador" value
 * @method integer             getVobo()               Returns the current record's "vobo" value
 * @method integer             getTipoSolicitud()      Returns the current record's "tipo_solicitud" value
 * @method timestamp           getFechalog()           Returns the current record's "fechalog" value
 * @method string              getUsuariolog()         Returns the current record's "usuariolog" value
 * @method integer             getIdCdp()              Returns the current record's "id_cdp" value
 * @method integer             getIdAreaOrdenadora()   Returns the current record's "id_area_ordenadora" value
 * @method string              getIdComision()         Returns the current record's "id_comision" value
 * @method integer             getIdFrenteTrab()       Returns the current record's "id_frente_trab" value
 * @method Doctrine_Collection getPRSOLICCDPDETA()     Returns the current record's "PR_SOLIC_CDP_DETA" collection
 * @method PR_SOLICITUD_CDP    setIdSolicitudCdp()     Sets the current record's "id_solicitud_cdp" value
 * @method PR_SOLICITUD_CDP    setIdVigencia()         Sets the current record's "id_vigencia" value
 * @method PR_SOLICITUD_CDP    setVigencia()           Sets the current record's "vigencia" value
 * @method PR_SOLICITUD_CDP    setObjeto()             Sets the current record's "objeto" value
 * @method PR_SOLICITUD_CDP    setObservaciones()      Sets the current record's "observaciones" value
 * @method PR_SOLICITUD_CDP    setEstado()             Sets the current record's "estado" value
 * @method PR_SOLICITUD_CDP    setValorTotal()         Sets the current record's "valor_total" value
 * @method PR_SOLICITUD_CDP    setFechaProceso()       Sets the current record's "fecha_proceso" value
 * @method PR_SOLICITUD_CDP    setFirmaOrdenador()     Sets the current record's "firma_ordenador" value
 * @method PR_SOLICITUD_CDP    setVobo()               Sets the current record's "vobo" value
 * @method PR_SOLICITUD_CDP    setTipoSolicitud()      Sets the current record's "tipo_solicitud" value
 * @method PR_SOLICITUD_CDP    setFechalog()           Sets the current record's "fechalog" value
 * @method PR_SOLICITUD_CDP    setUsuariolog()         Sets the current record's "usuariolog" value
 * @method PR_SOLICITUD_CDP    setIdCdp()              Sets the current record's "id_cdp" value
 * @method PR_SOLICITUD_CDP    setIdAreaOrdenadora()   Sets the current record's "id_area_ordenadora" value
 * @method PR_SOLICITUD_CDP    setIdComision()         Sets the current record's "id_comision" value
 * @method PR_SOLICITUD_CDP    setIdFrenteTrab()       Sets the current record's "id_frente_trab" value
 * @method PR_SOLICITUD_CDP    setPRSOLICCDPDETA()     Sets the current record's "PR_SOLIC_CDP_DETA" 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_SOLICITUD_CDP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_SOLICITUD_CDP');
        $this->hasColumn('id_solicitud_cdp', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             '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', 4, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('objeto', 'string', 500, array(
             'notnull' => true,
             '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('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('valor_total', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             '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('firma_ordenador', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vobo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tipo_solicitud', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fechalog', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuariolog', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cdp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_area_ordenadora', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_comision', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_frente_trab', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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