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

/**
 * BaseTS_TIP_DIR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_dir
 * @property string $descripcion
 * @property Doctrine_Collection $INTERCER_DU_DIR
 * 
 * @method integer             getIdTipDir()        Returns the current record's "id_tip_dir" value
 * @method string              getDescripcion()     Returns the current record's "descripcion" value
 * @method Doctrine_Collection getINTERCERDUDIR()   Returns the current record's "INTERCER_DU_DIR" collection
 * @method TS_TIP_DIR          setIdTipDir()        Sets the current record's "id_tip_dir" value
 * @method TS_TIP_DIR          setDescripcion()     Sets the current record's "descripcion" value
 * @method TS_TIP_DIR          setINTERCERDUDIR()   Sets the current record's "INTERCER_DU_DIR" 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_DIR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_TIP_DIR');
        $this->hasColumn('id_tip_dir', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 50, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
    }

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