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

/**
 * BaseRH_TC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tc
 * @property string $nombre
 * @property Doctrine_Collection $RH_CL
 * 
 * @method integer             getIdTc()   Returns the current record's "id_tc" value
 * @method string              getNombre() Returns the current record's "nombre" value
 * @method Doctrine_Collection getRHCL()   Returns the current record's "RH_CL" collection
 * @method RH_TC               setIdTc()   Sets the current record's "id_tc" value
 * @method RH_TC               setNombre() Sets the current record's "nombre" value
 * @method RH_TC               setRHCL()   Sets the current record's "RH_CL" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_TC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_TC');
        $this->hasColumn('id_tc', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
    }

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