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

/**
 * BaseINTERCER_TIP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_ter
 * @property string $desc_ter
 * @property integer $es_pos
 * @property integer $razon_soc
 * @property Doctrine_Collection $TS_NAT_JUR
 * @property Doctrine_Collection $TIPO_IDENTIFICACION
 * @property Doctrine_Collection $INTERCEROS
 * 
 * @method integer             getIdTipTer()            Returns the current record's "id_tip_ter" value
 * @method string              getDescTer()             Returns the current record's "desc_ter" value
 * @method integer             getEsPos()               Returns the current record's "es_pos" value
 * @method integer             getRazonSoc()            Returns the current record's "razon_soc" value
 * @method Doctrine_Collection getTSNATJUR()            Returns the current record's "TS_NAT_JUR" collection
 * @method Doctrine_Collection getTIPOIDENTIFICACION()  Returns the current record's "TIPO_IDENTIFICACION" collection
 * @method Doctrine_Collection getINTERCEROS()          Returns the current record's "INTERCEROS" collection
 * @method INTERCER_TIP        setIdTipTer()            Sets the current record's "id_tip_ter" value
 * @method INTERCER_TIP        setDescTer()             Sets the current record's "desc_ter" value
 * @method INTERCER_TIP        setEsPos()               Sets the current record's "es_pos" value
 * @method INTERCER_TIP        setRazonSoc()            Sets the current record's "razon_soc" value
 * @method INTERCER_TIP        setTSNATJUR()            Sets the current record's "TS_NAT_JUR" collection
 * @method INTERCER_TIP        setTIPOIDENTIFICACION()  Sets the current record's "TIPO_IDENTIFICACION" collection
 * @method INTERCER_TIP        setINTERCEROS()          Sets the current record's "INTERCEROS" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseINTERCER_TIP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('INTERCER_TIP');
        $this->hasColumn('id_tip_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('desc_ter', 'string', 300, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
        $this->hasColumn('es_pos', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('razon_soc', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasMany('TIPO_IDENTIFICACION', array(
             'local' => 'id_tip_ter',
             'foreign' => 'id_tip_ter'));

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