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

/**
 * BaseNIVEL_CARGO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nivel_cargo
 * @property string $nivel_cargo
 * @property Doctrine_Collection $RH_EN_REGISTRO_ENCUESTA
 * 
 * @method integer             getIdNivelCargo()            Returns the current record's "id_nivel_cargo" value
 * @method string              getNivelCargo()              Returns the current record's "nivel_cargo" value
 * @method Doctrine_Collection getRHENREGISTROENCUESTA()    Returns the current record's "RH_EN_REGISTRO_ENCUESTA" collection
 * @method NIVEL_CARGO         setIdNivelCargo()            Sets the current record's "id_nivel_cargo" value
 * @method NIVEL_CARGO         setNivelCargo()              Sets the current record's "nivel_cargo" value
 * @method NIVEL_CARGO         setRHENREGISTROENCUESTA()    Sets the current record's "RH_EN_REGISTRO_ENCUESTA" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNIVEL_CARGO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NIVEL_CARGO');
        $this->hasColumn('id_nivel_cargo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('nivel_cargo', '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_cargo',
             'foreign' => 'id_nivel_cargo'));
    }
}