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

/**
 * BaseTS_TI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $descripcion
 * @property Doctrine_Collection $TS_CR
 * 
 * @method integer             getId()          Returns the current record's "id" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method Doctrine_Collection getTSCR()        Returns the current record's "TS_CR" collection
 * @method TS_TI               setId()          Sets the current record's "id" value
 * @method TS_TI               setDescripcion() Sets the current record's "descripcion" value
 * @method TS_TI               setTSCR()        Sets the current record's "TS_CR" 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_TI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_TI');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
    }

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