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

/**
 * BaseNO_NOMB_DEDUC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nomb_deduc
 * @property integer $id_nombramiento
 * @property integer $id_concep_nomina
 * @property integer $valor_mes
 * @property decimal $porcentaje
 * @property NO_CONCEP_NOMINA $NO_CONCEP_NOMINA
 * @property NO_NOMBRAMIENTO $NO_NOMBRAMIENTO
 * 
 * @method integer          getIdNombDeduc()      Returns the current record's "id_nomb_deduc" value
 * @method integer          getIdNombramiento()   Returns the current record's "id_nombramiento" value
 * @method integer          getIdConcepNomina()   Returns the current record's "id_concep_nomina" value
 * @method integer          getValorMes()         Returns the current record's "valor_mes" 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_NOMBRAMIENTO  getNONOMBRAMIENTO()   Returns the current record's "NO_NOMBRAMIENTO" value
 * @method NO_NOMB_DEDUC    setIdNombDeduc()      Sets the current record's "id_nomb_deduc" value
 * @method NO_NOMB_DEDUC    setIdNombramiento()   Sets the current record's "id_nombramiento" value
 * @method NO_NOMB_DEDUC    setIdConcepNomina()   Sets the current record's "id_concep_nomina" value
 * @method NO_NOMB_DEDUC    setValorMes()         Sets the current record's "valor_mes" value
 * @method NO_NOMB_DEDUC    setPorcentaje()       Sets the current record's "porcentaje" value
 * @method NO_NOMB_DEDUC    setNOCONCEPNOMINA()   Sets the current record's "NO_CONCEP_NOMINA" value
 * @method NO_NOMB_DEDUC    setNONOMBRAMIENTO()   Sets the current record's "NO_NOMBRAMIENTO" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_NOMB_DEDUC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_NOMB_DEDUC');
        $this->hasColumn('id_nomb_deduc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_nombramiento', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_concep_nomina', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_mes', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             '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_NOMBRAMIENTO', array(
             'local' => 'id_nombramiento',
             'foreign' => 'id_nombramiento'));
    }
}