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

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

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

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