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

/**
 * BaseRH_PN_TIPO_ESCALA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_esc
 * @property string $codigo
 * @property string $nombre
 * @property Doctrine_Collection $RH_PN_ESCALA
 * 
 * @method integer             getIdTipEsc()     Returns the current record's "id_tip_esc" value
 * @method string              getCodigo()       Returns the current record's "codigo" value
 * @method string              getNombre()       Returns the current record's "nombre" value
 * @method Doctrine_Collection getRHPNESCALA()   Returns the current record's "RH_PN_ESCALA" collection
 * @method RH_PN_TIPO_ESCALA   setIdTipEsc()     Sets the current record's "id_tip_esc" value
 * @method RH_PN_TIPO_ESCALA   setCodigo()       Sets the current record's "codigo" value
 * @method RH_PN_TIPO_ESCALA   setNombre()       Sets the current record's "nombre" value
 * @method RH_PN_TIPO_ESCALA   setRHPNESCALA()   Sets the current record's "RH_PN_ESCALA" 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_PN_TIPO_ESCALA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_PN_TIPO_ESCALA');
        $this->hasColumn('id_tip_esc', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             '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_PN_ESCALA', array(
             'local' => 'id_tip_esc',
             'foreign' => 'id_tipo_escala'));
    }
}