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

/**
 * BaseTS_TIP_MOV
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_mov
 * @property string $descripcion
 * @property integer $codigo
 * @property Doctrine_Collection $TS_MB
 * 
 * @method integer             getIdTipMov()    Returns the current record's "id_tip_mov" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method integer             getCodigo()      Returns the current record's "codigo" value
 * @method Doctrine_Collection getTSMB()        Returns the current record's "TS_MB" collection
 * @method TS_TIP_MOV          setIdTipMov()    Sets the current record's "id_tip_mov" value
 * @method TS_TIP_MOV          setDescripcion() Sets the current record's "descripcion" value
 * @method TS_TIP_MOV          setCodigo()      Sets the current record's "codigo" value
 * @method TS_TIP_MOV          setTSMB()        Sets the current record's "TS_MB" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_TIP_MOV extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_TIP_MOV');
        $this->hasColumn('id_tip_mov', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('codigo', 'integer', 10, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
    }

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