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

/**
 * BaseNIVEL_JERARQUICO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nivel_jerarquico
 * @property string $nivel_jerarquico
 * @property Doctrine_Collection $RH_EN_REGISTRO_ENCUESTA
 * 
 * @method integer             getIdNivelJerarquico()       Returns the current record's "id_nivel_jerarquico" value
 * @method string              getNivelJerarquico()         Returns the current record's "nivel_jerarquico" value
 * @method Doctrine_Collection getRHENREGISTROENCUESTA()    Returns the current record's "RH_EN_REGISTRO_ENCUESTA" collection
 * @method NIVEL_JERARQUICO    setIdNivelJerarquico()       Sets the current record's "id_nivel_jerarquico" value
 * @method NIVEL_JERARQUICO    setNivelJerarquico()         Sets the current record's "nivel_jerarquico" value
 * @method NIVEL_JERARQUICO    setRHENREGISTROENCUESTA()    Sets the current record's "RH_EN_REGISTRO_ENCUESTA" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNIVEL_JERARQUICO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NIVEL_JERARQUICO');
        $this->hasColumn('id_nivel_jerarquico', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('nivel_jerarquico', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

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