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

/**
 * BaseNO_NOV_CONCEPTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nov_concepto
 * @property integer $id_nov_ded_adic
 * @property integer $id_concep_nomina
 * @property decimal $valor
 * @property decimal $porcentaje
 * @property NO_CONCEP_NOMINA $NO_CONCEP_NOMINA
 * @property NO_NOV_DED_ADIC $NO_NOV_DED_ADIC
 * 
 * @method integer          getIdNovConcepto()    Returns the current record's "id_nov_concepto" value
 * @method integer          getIdNovDedAdic()     Returns the current record's "id_nov_ded_adic" value
 * @method integer          getIdConcepNomina()   Returns the current record's "id_concep_nomina" 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_NOV_DED_ADIC  getNONOVDEDADIC()     Returns the current record's "NO_NOV_DED_ADIC" value
 * @method NO_NOV_CONCEPTO  setIdNovConcepto()    Sets the current record's "id_nov_concepto" value
 * @method NO_NOV_CONCEPTO  setIdNovDedAdic()     Sets the current record's "id_nov_ded_adic" value
 * @method NO_NOV_CONCEPTO  setIdConcepNomina()   Sets the current record's "id_concep_nomina" value
 * @method NO_NOV_CONCEPTO  setValor()            Sets the current record's "valor" value
 * @method NO_NOV_CONCEPTO  setPorcentaje()       Sets the current record's "porcentaje" value
 * @method NO_NOV_CONCEPTO  setNOCONCEPNOMINA()   Sets the current record's "NO_CONCEP_NOMINA" value
 * @method NO_NOV_CONCEPTO  setNONOVDEDADIC()     Sets the current record's "NO_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_NOV_CONCEPTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_NOV_CONCEPTO');
        $this->hasColumn('id_nov_concepto', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_nov_ded_adic', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_concep_nomina', '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_NOV_DED_ADIC', array(
             'local' => 'id_nov_concepto',
             'foreign' => 'id_nov_dec_adic'));
    }
}