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

/**
 * BasePR_CPO_ASIGN
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_cpo
 * @property integer $id_asign
 * @property integer $id_obj_gasto
 * @property decimal $valor
 * @property integer $id_pr_cdp_cpo
 * @property integer $id_vigencia
 * @property string $ano_fiscal
 * @property OBJETOS_GASTO $OBJETOS_GASTO
 * @property PROYECTOS $PROYECTOS
 * @property PR_ASIG_PRESUP $PR_ASIG_PRESUP
 * @property PR_CDP_CPO $PR_CDP_CPO
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer        getId()             Returns the current record's "id" 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 integer        getIdPrCdpCpo()     Returns the current record's "id_pr_cdp_cpo" value
 * @method integer        getIdVigencia()     Returns the current record's "id_vigencia" value
 * @method string         getAnoFiscal()      Returns the current record's "ano_fiscal" value
 * @method OBJETOS_GASTO  getOBJETOSGASTO()   Returns the current record's "OBJETOS_GASTO" value
 * @method PROYECTOS      getPROYECTOS()      Returns the current record's "PROYECTOS" value
 * @method PR_ASIG_PRESUP getPRASIGPRESUP()   Returns the current record's "PR_ASIG_PRESUP" value
 * @method PR_CDP_CPO     getPRCDPCPO()       Returns the current record's "PR_CDP_CPO" value
 * @method VIGENCIA       getVIGENCIA()       Returns the current record's "VIGENCIA" value
 * @method PR_CPO_ASIGN   setId()             Sets the current record's "id" value
 * @method PR_CPO_ASIGN   setIdCpo()          Sets the current record's "id_cpo" value
 * @method PR_CPO_ASIGN   setIdAsign()        Sets the current record's "id_asign" value
 * @method PR_CPO_ASIGN   setIdObjGasto()     Sets the current record's "id_obj_gasto" value
 * @method PR_CPO_ASIGN   setValor()          Sets the current record's "valor" value
 * @method PR_CPO_ASIGN   setIdPrCdpCpo()     Sets the current record's "id_pr_cdp_cpo" value
 * @method PR_CPO_ASIGN   setIdVigencia()     Sets the current record's "id_vigencia" value
 * @method PR_CPO_ASIGN   setAnoFiscal()      Sets the current record's "ano_fiscal" value
 * @method PR_CPO_ASIGN   setOBJETOSGASTO()   Sets the current record's "OBJETOS_GASTO" value
 * @method PR_CPO_ASIGN   setPROYECTOS()      Sets the current record's "PROYECTOS" value
 * @method PR_CPO_ASIGN   setPRASIGPRESUP()   Sets the current record's "PR_ASIG_PRESUP" value
 * @method PR_CPO_ASIGN   setPRCDPCPO()       Sets the current record's "PR_CDP_CPO" value
 * @method PR_CPO_ASIGN   setVIGENCIA()       Sets the current record's "VIGENCIA" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_CPO_ASIGN extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_CPO_ASIGN');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $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' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_pr_cdp_cpo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ano_fiscal', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

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

        $this->hasOne('PROYECTOS', array(
             'local' => 'id_cpo',
             'foreign' => 'id'));

        $this->hasOne('PR_ASIG_PRESUP', array(
             'local' => 'id_asign',
             'foreign' => 'id'));

        $this->hasOne('PR_CDP_CPO', array(
             'local' => 'id_pr_cdp_cpo',
             'foreign' => 'id'));

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