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

/**
 * BaseRH_NP_TIP_NOV
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_nov
 * @property string $descripcion
 * @property integer $id_sa_tn
 * @property integer $mod_fecha
 * @property integer $sub_alimentacion
 * @property integer $dias_pag_pat
 * @property string $codigo
 * @property integer $cau_lq
 * @property integer $tiempo_lq
 * @property integer $reintegro_lq
 * @property integer $kardex
 * @property integer $sig_op
 * @property RH_SA_TN $RH_SA_TN
 * 
 * @method integer       getIdTipNov()         Returns the current record's "id_tip_nov" value
 * @method string        getDescripcion()      Returns the current record's "descripcion" value
 * @method integer       getIdSaTn()           Returns the current record's "id_sa_tn" value
 * @method integer       getModFecha()         Returns the current record's "mod_fecha" value
 * @method integer       getSubAlimentacion()  Returns the current record's "sub_alimentacion" value
 * @method integer       getDiasPagPat()       Returns the current record's "dias_pag_pat" value
 * @method string        getCodigo()           Returns the current record's "codigo" value
 * @method integer       getCauLq()            Returns the current record's "cau_lq" value
 * @method integer       getTiempoLq()         Returns the current record's "tiempo_lq" value
 * @method integer       getReintegroLq()      Returns the current record's "reintegro_lq" value
 * @method integer       getKardex()           Returns the current record's "kardex" value
 * @method integer       getSigOp()            Returns the current record's "sig_op" value
 * @method RH_SA_TN      getRHSATN()           Returns the current record's "RH_SA_TN" value
 * @method RH_NP_TIP_NOV setIdTipNov()         Sets the current record's "id_tip_nov" value
 * @method RH_NP_TIP_NOV setDescripcion()      Sets the current record's "descripcion" value
 * @method RH_NP_TIP_NOV setIdSaTn()           Sets the current record's "id_sa_tn" value
 * @method RH_NP_TIP_NOV setModFecha()         Sets the current record's "mod_fecha" value
 * @method RH_NP_TIP_NOV setSubAlimentacion()  Sets the current record's "sub_alimentacion" value
 * @method RH_NP_TIP_NOV setDiasPagPat()       Sets the current record's "dias_pag_pat" value
 * @method RH_NP_TIP_NOV setCodigo()           Sets the current record's "codigo" value
 * @method RH_NP_TIP_NOV setCauLq()            Sets the current record's "cau_lq" value
 * @method RH_NP_TIP_NOV setTiempoLq()         Sets the current record's "tiempo_lq" value
 * @method RH_NP_TIP_NOV setReintegroLq()      Sets the current record's "reintegro_lq" value
 * @method RH_NP_TIP_NOV setKardex()           Sets the current record's "kardex" value
 * @method RH_NP_TIP_NOV setSigOp()            Sets the current record's "sig_op" value
 * @method RH_NP_TIP_NOV setRHSATN()           Sets the current record's "RH_SA_TN" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_NP_TIP_NOV extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_NP_TIP_NOV');
        $this->hasColumn('id_tip_nov', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('id_sa_tn', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('mod_fecha', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('sub_alimentacion', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('dias_pag_pat', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 4, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('cau_lq', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('tiempo_lq', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('reintegro_lq', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('kardex', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('sig_op', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('RH_SA_TN', array(
             'local' => 'id_sa_tn',
             'foreign' => 'id_sa_tn'));
    }
}