<?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 Doctrine_Collection $INTERCEROS
 * @property Doctrine_Collection $TIPO_IDENTIFICACION
 * @property Doctrine_Collection $TS_NAT_JUR
 * 
 * @method integer             getIdTipTer()            Returns the current record's "id_tip_ter" value
 * @method string              getDescTer()             Returns the current record's "desc_ter" value
 * @method Doctrine_Collection getINTERCEROS()          Returns the current record's "INTERCEROS" collection
 * @method Doctrine_Collection getTIPOIDENTIFICACION()  Returns the current record's "TIPO_IDENTIFICACION" collection
 * @method Doctrine_Collection getTSNATJUR()            Returns the current record's "TS_NAT_JUR" 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        setINTERCEROS()          Sets the current record's "INTERCEROS" collection
 * @method INTERCER_TIP        setTIPOIDENTIFICACION()  Sets the current record's "TIPO_IDENTIFICACION" collection
 * @method INTERCER_TIP        setTSNATJUR()            Sets the current record's "TS_NAT_JUR" collection
 * 
 * @package    cartera
 * @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(
             '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,
             ));
    }

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

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

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