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

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

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

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