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

/**
 * BaseTS_NAT_JUR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nat_jur
 * @property string $desc_jur
 * @property integer $id_tip_ter
 * @property string $codigo
 * @property integer $es_pos
 * @property INTERCER_TIP $INTERCER_TIP
 * @property Doctrine_Collection $INTERCEROS
 * 
 * @method integer             getIdNatJur()     Returns the current record's "id_nat_jur" value
 * @method string              getDescJur()      Returns the current record's "desc_jur" value
 * @method integer             getIdTipTer()     Returns the current record's "id_tip_ter" value
 * @method string              getCodigo()       Returns the current record's "codigo" value
 * @method integer             getEsPos()        Returns the current record's "es_pos" value
 * @method INTERCER_TIP        getINTERCERTIP()  Returns the current record's "INTERCER_TIP" value
 * @method Doctrine_Collection getINTERCEROS()   Returns the current record's "INTERCEROS" collection
 * @method TS_NAT_JUR          setIdNatJur()     Sets the current record's "id_nat_jur" value
 * @method TS_NAT_JUR          setDescJur()      Sets the current record's "desc_jur" value
 * @method TS_NAT_JUR          setIdTipTer()     Sets the current record's "id_tip_ter" value
 * @method TS_NAT_JUR          setCodigo()       Sets the current record's "codigo" value
 * @method TS_NAT_JUR          setEsPos()        Sets the current record's "es_pos" value
 * @method TS_NAT_JUR          setINTERCERTIP()  Sets the current record's "INTERCER_TIP" value
 * @method TS_NAT_JUR          setINTERCEROS()   Sets the current record's "INTERCEROS" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_NAT_JUR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_NAT_JUR');
        $this->hasColumn('id_nat_jur', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('desc_jur', 'string', 300, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
        $this->hasColumn('id_tip_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 2, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2,
             ));
        $this->hasColumn('es_pos', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasMany('INTERCEROS', array(
             'local' => 'id_nat_jur',
             'foreign' => 'id_nat_jur'));
    }
}