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

/**
 * BaseINTERCER_DG_JUR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_dg_jur
 * @property integer $id_tip_org
 * @property integer $id_tip_cap
 * @property integer $ent_pro_liq
 * @property integer $por_pub
 * @property integer $por_pri
 * @property integer $por_tot
 * @property integer $id_tip_ent
 * @property integer $id_ord_ent
 * @property integer $id_tip_adm
 * @property string $cod_con_cgn
 * @property integer $id_mae_ter
 * @property string $cargo
 * @property integer $id_tip_rep
 * @property integer $id_mae_ter_jur
 * @property INTERCEROS $INTERCEROS
 * @property INTERCEROS $INTERCEROS_2
 * @property TS_ORD_ENT_PUB $TS_ORD_ENT_PUB
 * @property TS_TIP_ADM $TS_TIP_ADM
 * @property TS_TIP_CAP $TS_TIP_CAP
 * @property TS_TIP_REP_LEG $TS_TIP_REP_LEG
 * 
 * @method integer         getIdDgJur()        Returns the current record's "id_dg_jur" value
 * @method integer         getIdTipOrg()       Returns the current record's "id_tip_org" value
 * @method integer         getIdTipCap()       Returns the current record's "id_tip_cap" value
 * @method integer         getEntProLiq()      Returns the current record's "ent_pro_liq" value
 * @method integer         getPorPub()         Returns the current record's "por_pub" value
 * @method integer         getPorPri()         Returns the current record's "por_pri" value
 * @method integer         getPorTot()         Returns the current record's "por_tot" value
 * @method integer         getIdTipEnt()       Returns the current record's "id_tip_ent" value
 * @method integer         getIdOrdEnt()       Returns the current record's "id_ord_ent" value
 * @method integer         getIdTipAdm()       Returns the current record's "id_tip_adm" value
 * @method string          getCodConCgn()      Returns the current record's "cod_con_cgn" value
 * @method integer         getIdMaeTer()       Returns the current record's "id_mae_ter" value
 * @method string          getCargo()          Returns the current record's "cargo" value
 * @method integer         getIdTipRep()       Returns the current record's "id_tip_rep" value
 * @method integer         getIdMaeTerJur()    Returns the current record's "id_mae_ter_jur" value
 * @method INTERCEROS      getINTERCEROS()     Returns the current record's "INTERCEROS" value
 * @method INTERCEROS      getINTERCEROS2()    Returns the current record's "INTERCEROS_2" value
 * @method TS_ORD_ENT_PUB  getTSORDENTPUB()    Returns the current record's "TS_ORD_ENT_PUB" value
 * @method TS_TIP_ADM      getTSTIPADM()       Returns the current record's "TS_TIP_ADM" value
 * @method TS_TIP_CAP      getTSTIPCAP()       Returns the current record's "TS_TIP_CAP" value
 * @method TS_TIP_REP_LEG  getTSTIPREPLEG()    Returns the current record's "TS_TIP_REP_LEG" value
 * @method INTERCER_DG_JUR setIdDgJur()        Sets the current record's "id_dg_jur" value
 * @method INTERCER_DG_JUR setIdTipOrg()       Sets the current record's "id_tip_org" value
 * @method INTERCER_DG_JUR setIdTipCap()       Sets the current record's "id_tip_cap" value
 * @method INTERCER_DG_JUR setEntProLiq()      Sets the current record's "ent_pro_liq" value
 * @method INTERCER_DG_JUR setPorPub()         Sets the current record's "por_pub" value
 * @method INTERCER_DG_JUR setPorPri()         Sets the current record's "por_pri" value
 * @method INTERCER_DG_JUR setPorTot()         Sets the current record's "por_tot" value
 * @method INTERCER_DG_JUR setIdTipEnt()       Sets the current record's "id_tip_ent" value
 * @method INTERCER_DG_JUR setIdOrdEnt()       Sets the current record's "id_ord_ent" value
 * @method INTERCER_DG_JUR setIdTipAdm()       Sets the current record's "id_tip_adm" value
 * @method INTERCER_DG_JUR setCodConCgn()      Sets the current record's "cod_con_cgn" value
 * @method INTERCER_DG_JUR setIdMaeTer()       Sets the current record's "id_mae_ter" value
 * @method INTERCER_DG_JUR setCargo()          Sets the current record's "cargo" value
 * @method INTERCER_DG_JUR setIdTipRep()       Sets the current record's "id_tip_rep" value
 * @method INTERCER_DG_JUR setIdMaeTerJur()    Sets the current record's "id_mae_ter_jur" value
 * @method INTERCER_DG_JUR setINTERCEROS()     Sets the current record's "INTERCEROS" value
 * @method INTERCER_DG_JUR setINTERCEROS2()    Sets the current record's "INTERCEROS_2" value
 * @method INTERCER_DG_JUR setTSORDENTPUB()    Sets the current record's "TS_ORD_ENT_PUB" value
 * @method INTERCER_DG_JUR setTSTIPADM()       Sets the current record's "TS_TIP_ADM" value
 * @method INTERCER_DG_JUR setTSTIPCAP()       Sets the current record's "TS_TIP_CAP" value
 * @method INTERCER_DG_JUR setTSTIPREPLEG()    Sets the current record's "TS_TIP_REP_LEG" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseINTERCER_DG_JUR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('INTERCER_DG_JUR');
        $this->hasColumn('id_dg_jur', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_tip_org', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tip_cap', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('ent_pro_liq', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('por_pub', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('por_pri', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('por_tot', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tip_ent', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ord_ent', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tip_adm', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cod_con_cgn', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cargo', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tip_rep', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter_jur', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('INTERCEROS as INTERCEROS_2', array(
             'local' => 'id_mae_ter_jur',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('TS_ORD_ENT_PUB', array(
             'local' => 'id_ord_ent',
             'foreign' => 'id_ord_ent'));

        $this->hasOne('TS_TIP_ADM', array(
             'local' => 'id_tip_adm',
             'foreign' => 'id_tip_adm'));

        $this->hasOne('TS_TIP_CAP', array(
             'local' => 'id_tip_cap',
             'foreign' => 'id_tip_cap'));

        $this->hasOne('TS_TIP_REP_LEG', array(
             'local' => 'id_tip_rep',
             'foreign' => 'id_tip_rep'));
    }
}