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

/**
 * BaseNO_TIPO_CONCEPTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_concepto
 * @property string $codigo
 * @property string $descripcion
 * @property integer $orden
 * @property Doctrine_Collection $NO_CONCEP_NOMINA
 * 
 * @method integer             getIdTipoConcepto()   Returns the current record's "id_tipo_concepto" value
 * @method string              getCodigo()           Returns the current record's "codigo" value
 * @method string              getDescripcion()      Returns the current record's "descripcion" value
 * @method integer             getOrden()            Returns the current record's "orden" value
 * @method Doctrine_Collection getNOCONCEPNOMINA()   Returns the current record's "NO_CONCEP_NOMINA" collection
 * @method NO_TIPO_CONCEPTO    setIdTipoConcepto()   Sets the current record's "id_tipo_concepto" value
 * @method NO_TIPO_CONCEPTO    setCodigo()           Sets the current record's "codigo" value
 * @method NO_TIPO_CONCEPTO    setDescripcion()      Sets the current record's "descripcion" value
 * @method NO_TIPO_CONCEPTO    setOrden()            Sets the current record's "orden" value
 * @method NO_TIPO_CONCEPTO    setNOCONCEPNOMINA()   Sets the current record's "NO_CONCEP_NOMINA" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_TIPO_CONCEPTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_TIPO_CONCEPTO');
        $this->hasColumn('id_tipo_concepto', 'integer', 20, array(
             'notnull' => false,
             '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' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('orden', 'integer', 2, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2,
             ));
    }

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