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

/**
 * BaseTS_TC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $descripcion
 * @property Doctrine_Collection $TS_CB
 * @property Doctrine_Collection $TS_ACT_BEN_REG
 * @property Doctrine_Collection $NO_PAGO_FUNC
 * @property Doctrine_Collection $CM_CB
 * 
 * @method integer             getId()             Returns the current record's "id" value
 * @method string              getDescripcion()    Returns the current record's "descripcion" value
 * @method Doctrine_Collection getTSCB()           Returns the current record's "TS_CB" collection
 * @method Doctrine_Collection getTSACTBENREG()    Returns the current record's "TS_ACT_BEN_REG" collection
 * @method Doctrine_Collection getNOPAGOFUNC()     Returns the current record's "NO_PAGO_FUNC" collection
 * @method Doctrine_Collection getCMCB()           Returns the current record's "CM_CB" collection
 * @method TS_TC               setId()             Sets the current record's "id" value
 * @method TS_TC               setDescripcion()    Sets the current record's "descripcion" value
 * @method TS_TC               setTSCB()           Sets the current record's "TS_CB" collection
 * @method TS_TC               setTSACTBENREG()    Sets the current record's "TS_ACT_BEN_REG" collection
 * @method TS_TC               setNOPAGOFUNC()     Sets the current record's "NO_PAGO_FUNC" collection
 * @method TS_TC               setCMCB()           Sets the current record's "CM_CB" 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_TC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_TC');
        $this->hasColumn('id', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $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_CB', array(
             'local' => 'id',
             'foreign' => 'id_tc'));

        $this->hasMany('TS_ACT_BEN_REG', array(
             'local' => 'id',
             'foreign' => 'id_tc'));

        $this->hasMany('NO_PAGO_FUNC', array(
             'local' => 'id',
             'foreign' => 'tipo_cuenta'));

        $this->hasMany('CM_CB', array(
             'local' => 'id',
             'foreign' => 'id_tc'));
    }
}