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

/**
 * BaseTS_LOC_DIR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_loc_dir
 * @property string $descripcion
 * @property Doctrine_Collection $INTERCER_DU
 * 
 * @method integer             getIdLocDir()    Returns the current record's "id_loc_dir" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method Doctrine_Collection getINTERCERDU()  Returns the current record's "INTERCER_DU" collection
 * @method TS_LOC_DIR          setIdLocDir()    Sets the current record's "id_loc_dir" value
 * @method TS_LOC_DIR          setDescripcion() Sets the current record's "descripcion" value
 * @method TS_LOC_DIR          setINTERCERDU()  Sets the current record's "INTERCER_DU" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_LOC_DIR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_LOC_DIR');
        $this->hasColumn('id_loc_dir', 'integer', 20, array(
             'notnull' => false,
             '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', array(
             'local' => 'id_loc_dir',
             'foreign' => 'id_loc_dir'));
    }
}