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

/**
 * BaseMT_TIPO_TER
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_ter
 * @property string $desc_ter
 * @property Doctrine_Collection $MAESTRO_TERCEROS
 * 
 * @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 getMAESTROTERCEROS()  Returns the current record's "MAESTRO_TERCEROS" collection
 * @method MT_TIPO_TER         setIdTipTer()         Sets the current record's "id_tip_ter" value
 * @method MT_TIPO_TER         setDescTer()          Sets the current record's "desc_ter" value
 * @method MT_TIPO_TER         setMAESTROTERCEROS()  Sets the current record's "MAESTRO_TERCEROS" 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 BaseMT_TIPO_TER extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('MT_TIPO_TER');
        $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,
             ));
    }

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