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

/**
 * BaseNO_IMP_DEDUC_T
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_imp_deduc_t
 * @property string $num_doc
 * @property integer $id_concep_nomina
 * @property decimal $valor
 * @property NO_CONCEP_NOMINA $NO_CONCEP_NOMINA
 * 
 * @method integer          getIdImpDeducT()      Returns the current record's "id_imp_deduc_t" value
 * @method string           getNumDoc()           Returns the current record's "num_doc" value
 * @method integer          getIdConcepNomina()   Returns the current record's "id_concep_nomina" value
 * @method decimal          getValor()            Returns the current record's "valor" value
 * @method NO_CONCEP_NOMINA getNOCONCEPNOMINA()   Returns the current record's "NO_CONCEP_NOMINA" value
 * @method NO_IMP_DEDUC_T   setIdImpDeducT()      Sets the current record's "id_imp_deduc_t" value
 * @method NO_IMP_DEDUC_T   setNumDoc()           Sets the current record's "num_doc" value
 * @method NO_IMP_DEDUC_T   setIdConcepNomina()   Sets the current record's "id_concep_nomina" value
 * @method NO_IMP_DEDUC_T   setValor()            Sets the current record's "valor" value
 * @method NO_IMP_DEDUC_T   setNOCONCEPNOMINA()   Sets the current record's "NO_CONCEP_NOMINA" 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_IMP_DEDUC_T extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_IMP_DEDUC_T');
        $this->hasColumn('id_imp_deduc_t', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             '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' => true,
             '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'));
    }
}