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

/**
 * BaseNO_CONCEPTO_NOV_DED
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_concepto_nov_ded
 * @property integer $id_concep_nomina
 * @property integer $id_tipo_nov_ded_adic
 * @property decimal $valor
 * @property decimal $porcentaje
 * @property NO_CONCEP_NOMINA $NO_CONCEP_NOMINA
 * @property NO_TIPO_NOV_DED_ADIC $NO_TIPO_NOV_DED_ADIC
 * 
 * @method integer              getIdConceptoNovDed()     Returns the current record's "id_concepto_nov_ded" value
 * @method integer              getIdConcepNomina()       Returns the current record's "id_concep_nomina" value
 * @method integer              getIdTipoNovDedAdic()     Returns the current record's "id_tipo_nov_ded_adic" value
 * @method decimal              getValor()                Returns the current record's "valor" value
 * @method decimal              getPorcentaje()           Returns the current record's "porcentaje" value
 * @method NO_CONCEP_NOMINA     getNOCONCEPNOMINA()       Returns the current record's "NO_CONCEP_NOMINA" value
 * @method NO_TIPO_NOV_DED_ADIC getNOTIPONOVDEDADIC()     Returns the current record's "NO_TIPO_NOV_DED_ADIC" value
 * @method NO_CONCEPTO_NOV_DED  setIdConceptoNovDed()     Sets the current record's "id_concepto_nov_ded" value
 * @method NO_CONCEPTO_NOV_DED  setIdConcepNomina()       Sets the current record's "id_concep_nomina" value
 * @method NO_CONCEPTO_NOV_DED  setIdTipoNovDedAdic()     Sets the current record's "id_tipo_nov_ded_adic" value
 * @method NO_CONCEPTO_NOV_DED  setValor()                Sets the current record's "valor" value
 * @method NO_CONCEPTO_NOV_DED  setPorcentaje()           Sets the current record's "porcentaje" value
 * @method NO_CONCEPTO_NOV_DED  setNOCONCEPNOMINA()       Sets the current record's "NO_CONCEP_NOMINA" value
 * @method NO_CONCEPTO_NOV_DED  setNOTIPONOVDEDADIC()     Sets the current record's "NO_TIPO_NOV_DED_ADIC" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_CONCEPTO_NOV_DED extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_CONCEPTO_NOV_DED');
        $this->hasColumn('id_concepto_nov_ded', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_concep_nomina', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_nov_ded_adic', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('porcentaje', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('NO_TIPO_NOV_DED_ADIC', array(
             'local' => 'id_tipo_nov_ded_adic',
             'foreign' => 'id_tipo_nov_ded_adic'));
    }
}