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

/**
 * BaseNO_TIPO_NOV_DED_ADIC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_nov_ded_adic
 * @property string $codigo
 * @property string $descripcion
 * @property Doctrine_Collection $NO_NOV_DED_ADIC
 * @property Doctrine_Collection $NO_CONCEPTO_NOV_DED
 * 
 * @method integer              getIdTipoNovDedAdic()     Returns the current record's "id_tipo_nov_ded_adic" value
 * @method string               getCodigo()               Returns the current record's "codigo" value
 * @method string               getDescripcion()          Returns the current record's "descripcion" value
 * @method Doctrine_Collection  getNONOVDEDADIC()         Returns the current record's "NO_NOV_DED_ADIC" collection
 * @method Doctrine_Collection  getNOCONCEPTONOVDED()     Returns the current record's "NO_CONCEPTO_NOV_DED" collection
 * @method NO_TIPO_NOV_DED_ADIC setIdTipoNovDedAdic()     Sets the current record's "id_tipo_nov_ded_adic" value
 * @method NO_TIPO_NOV_DED_ADIC setCodigo()               Sets the current record's "codigo" value
 * @method NO_TIPO_NOV_DED_ADIC setDescripcion()          Sets the current record's "descripcion" value
 * @method NO_TIPO_NOV_DED_ADIC setNONOVDEDADIC()         Sets the current record's "NO_NOV_DED_ADIC" collection
 * @method NO_TIPO_NOV_DED_ADIC setNOCONCEPTONOVDED()     Sets the current record's "NO_CONCEPTO_NOV_DED" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_TIPO_NOV_DED_ADIC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_TIPO_NOV_DED_ADIC');
        $this->hasColumn('id_tipo_nov_ded_adic', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('NO_NOV_DED_ADIC', array(
             'local' => 'id_tipo_nov_ded_adic',
             'foreign' => 'id_tipo_nov_ded_adic'));

        $this->hasMany('NO_CONCEPTO_NOV_DED', array(
             'local' => 'id_tipo_nov_ded_adic',
             'foreign' => 'id_tipo_nov_ded_adic'));
    }
}