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

/**
 * BaseRH_AP_NATURALEZA_EM
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nat_emp
 * @property integer $codigo
 * @property string $nombre
 * @property Doctrine_Collection $RH_SA_TN
 * @property Doctrine_Collection $RH_SA_NIV2
 * @property Doctrine_Collection $RH_AP_DEN_EMP
 * 
 * @method integer             getIdNatEmp()      Returns the current record's "id_nat_emp" value
 * @method integer             getCodigo()        Returns the current record's "codigo" value
 * @method string              getNombre()        Returns the current record's "nombre" value
 * @method Doctrine_Collection getRHSATN()        Returns the current record's "RH_SA_TN" collection
 * @method Doctrine_Collection getRHSANIV2()      Returns the current record's "RH_SA_NIV2" collection
 * @method Doctrine_Collection getRHAPDENEMP()    Returns the current record's "RH_AP_DEN_EMP" collection
 * @method RH_AP_NATURALEZA_EM setIdNatEmp()      Sets the current record's "id_nat_emp" value
 * @method RH_AP_NATURALEZA_EM setCodigo()        Sets the current record's "codigo" value
 * @method RH_AP_NATURALEZA_EM setNombre()        Sets the current record's "nombre" value
 * @method RH_AP_NATURALEZA_EM setRHSATN()        Sets the current record's "RH_SA_TN" collection
 * @method RH_AP_NATURALEZA_EM setRHSANIV2()      Sets the current record's "RH_SA_NIV2" collection
 * @method RH_AP_NATURALEZA_EM setRHAPDENEMP()    Sets the current record's "RH_AP_DEN_EMP" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_AP_NATURALEZA_EM extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_AP_NATURALEZA_EM');
        $this->hasColumn('id_nat_emp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('RH_SA_TN', array(
             'local' => 'id_nat_emp',
             'foreign' => 'id_n_emp'));

        $this->hasMany('RH_SA_NIV2', array(
             'local' => 'id_nat_emp',
             'foreign' => 'id_nat_emp'));

        $this->hasMany('RH_AP_DEN_EMP', array(
             'local' => 'id_nat_emp',
             'foreign' => 'id_nat_em'));
    }
}