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

/**
 * BaseRH_CL
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cl
 * @property string $nombre
 * @property string $definicion
 * @property integer $id_rh_tc
 * @property integer $id_nivel_jerarquico
 * @property RH_TC $RH_TC
 * @property Doctrine_Collection $RH_MF_CL
 * @property Doctrine_Collection $RH_CL_CA
 * 
 * @method integer             getIdCl()                Returns the current record's "id_cl" value
 * @method string              getNombre()              Returns the current record's "nombre" value
 * @method string              getDefinicion()          Returns the current record's "definicion" value
 * @method integer             getIdRhTc()              Returns the current record's "id_rh_tc" value
 * @method integer             getIdNivelJerarquico()   Returns the current record's "id_nivel_jerarquico" value
 * @method RH_TC               getRHTC()                Returns the current record's "RH_TC" value
 * @method Doctrine_Collection getRHMFCL()              Returns the current record's "RH_MF_CL" collection
 * @method Doctrine_Collection getRHCLCA()              Returns the current record's "RH_CL_CA" collection
 * @method RH_CL               setIdCl()                Sets the current record's "id_cl" value
 * @method RH_CL               setNombre()              Sets the current record's "nombre" value
 * @method RH_CL               setDefinicion()          Sets the current record's "definicion" value
 * @method RH_CL               setIdRhTc()              Sets the current record's "id_rh_tc" value
 * @method RH_CL               setIdNivelJerarquico()   Sets the current record's "id_nivel_jerarquico" value
 * @method RH_CL               setRHTC()                Sets the current record's "RH_TC" value
 * @method RH_CL               setRHMFCL()              Sets the current record's "RH_MF_CL" collection
 * @method RH_CL               setRHCLCA()              Sets the current record's "RH_CL_CA" 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_CL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_CL');
        $this->hasColumn('id_cl', '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,
             ));
        $this->hasColumn('definicion', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('id_rh_tc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_nivel_jerarquico', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasMany('RH_MF_CL', array(
             'local' => 'id_cl',
             'foreign' => 'id_cl'));

        $this->hasMany('RH_CL_CA', array(
             'local' => 'id_cl',
             'foreign' => 'id_rh_cl'));
    }
}