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

/**
 * BasePR_SOLIC_CDP_DETA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_solic_cdp_deta
 * @property integer $id_solicitud_cdp
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property integer $id_cpo
 * @property integer $id_asign
 * @property integer $id_obj_gasto
 * @property decimal $valor
 * @property PR_SOLICITUD_CDP $PR_SOLICITUD_CDP
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer           getIdSolicCdpDeta()    Returns the current record's "id_solic_cdp_deta" value
 * @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 integer           getIdCpo()             Returns the current record's "id_cpo" value
 * @method integer           getIdAsign()           Returns the current record's "id_asign" value
 * @method integer           getIdObjGasto()        Returns the current record's "id_obj_gasto" value
 * @method decimal           getValor()             Returns the current record's "valor" value
 * @method PR_SOLICITUD_CDP  getPRSOLICITUDCDP()    Returns the current record's "PR_SOLICITUD_CDP" value
 * @method VIGENCIA          getVIGENCIA()          Returns the current record's "VIGENCIA" value
 * @method PR_SOLIC_CDP_DETA setIdSolicCdpDeta()    Sets the current record's "id_solic_cdp_deta" value
 * @method PR_SOLIC_CDP_DETA setIdSolicitudCdp()    Sets the current record's "id_solicitud_cdp" value
 * @method PR_SOLIC_CDP_DETA setIdVigencia()        Sets the current record's "id_vigencia" value
 * @method PR_SOLIC_CDP_DETA setVigencia()          Sets the current record's "vigencia" value
 * @method PR_SOLIC_CDP_DETA setIdCpo()             Sets the current record's "id_cpo" value
 * @method PR_SOLIC_CDP_DETA setIdAsign()           Sets the current record's "id_asign" value
 * @method PR_SOLIC_CDP_DETA setIdObjGasto()        Sets the current record's "id_obj_gasto" value
 * @method PR_SOLIC_CDP_DETA setValor()             Sets the current record's "valor" value
 * @method PR_SOLIC_CDP_DETA setPRSOLICITUDCDP()    Sets the current record's "PR_SOLICITUD_CDP" value
 * @method PR_SOLIC_CDP_DETA setVIGENCIA()          Sets the current record's "VIGENCIA" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_SOLIC_CDP_DETA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_SOLIC_CDP_DETA');
        $this->hasColumn('id_solic_cdp_deta', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_solicitud_cdp', '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', 4, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('id_cpo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_asign', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_obj_gasto', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

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