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

/**
 * BaseRH_NP_DED_LEY
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_ded_ley
 * @property integer $id_con_nom
 * @property integer $salario
 * @property integer $nomina
 * @property integer $funcionario
 * @property decimal $porce_fun
 * @property integer $empresa
 * @property decimal $porce_empresa
 * @property integer $area
 * @property RH_NP_CON_NOM $RH_NP_CON_NOM
 * 
 * @method integer       getIdDedLey()      Returns the current record's "id_ded_ley" value
 * @method integer       getIdConNom()      Returns the current record's "id_con_nom" value
 * @method integer       getSalario()       Returns the current record's "salario" value
 * @method integer       getNomina()        Returns the current record's "nomina" value
 * @method integer       getFuncionario()   Returns the current record's "funcionario" value
 * @method decimal       getPorceFun()      Returns the current record's "porce_fun" value
 * @method integer       getEmpresa()       Returns the current record's "empresa" value
 * @method decimal       getPorceEmpresa()  Returns the current record's "porce_empresa" value
 * @method integer       getArea()          Returns the current record's "area" value
 * @method RH_NP_CON_NOM getRHNPCONNOM()    Returns the current record's "RH_NP_CON_NOM" value
 * @method RH_NP_DED_LEY setIdDedLey()      Sets the current record's "id_ded_ley" value
 * @method RH_NP_DED_LEY setIdConNom()      Sets the current record's "id_con_nom" value
 * @method RH_NP_DED_LEY setSalario()       Sets the current record's "salario" value
 * @method RH_NP_DED_LEY setNomina()        Sets the current record's "nomina" value
 * @method RH_NP_DED_LEY setFuncionario()   Sets the current record's "funcionario" value
 * @method RH_NP_DED_LEY setPorceFun()      Sets the current record's "porce_fun" value
 * @method RH_NP_DED_LEY setEmpresa()       Sets the current record's "empresa" value
 * @method RH_NP_DED_LEY setPorceEmpresa()  Sets the current record's "porce_empresa" value
 * @method RH_NP_DED_LEY setArea()          Sets the current record's "area" value
 * @method RH_NP_DED_LEY setRHNPCONNOM()    Sets the current record's "RH_NP_CON_NOM" 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_DED_LEY extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_NP_DED_LEY');
        $this->hasColumn('id_ded_ley', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_con_nom', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('salario', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('nomina', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('funcionario', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('porce_fun', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('empresa', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('porce_empresa', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('area', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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