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

/**
 * BaseNO_AGRUP_CONCEPTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_agrup_concepto
 * @property string $codigo
 * @property string $descripcion
 * @property integer $estado
 * @property integer $tipo_agrupacion
 * @property Doctrine_Collection $NO_CLASE_FONDO
 * @property Doctrine_Collection $NO_AGRUP_DETA
 * 
 * @method integer             getIdAgrupConcepto()   Returns the current record's "id_agrup_concepto" value
 * @method string              getCodigo()            Returns the current record's "codigo" value
 * @method string              getDescripcion()       Returns the current record's "descripcion" value
 * @method integer             getEstado()            Returns the current record's "estado" value
 * @method integer             getTipoAgrupacion()    Returns the current record's "tipo_agrupacion" value
 * @method Doctrine_Collection getNOCLASEFONDO()      Returns the current record's "NO_CLASE_FONDO" collection
 * @method Doctrine_Collection getNOAGRUPDETA()       Returns the current record's "NO_AGRUP_DETA" collection
 * @method NO_AGRUP_CONCEPTO   setIdAgrupConcepto()   Sets the current record's "id_agrup_concepto" value
 * @method NO_AGRUP_CONCEPTO   setCodigo()            Sets the current record's "codigo" value
 * @method NO_AGRUP_CONCEPTO   setDescripcion()       Sets the current record's "descripcion" value
 * @method NO_AGRUP_CONCEPTO   setEstado()            Sets the current record's "estado" value
 * @method NO_AGRUP_CONCEPTO   setTipoAgrupacion()    Sets the current record's "tipo_agrupacion" value
 * @method NO_AGRUP_CONCEPTO   setNOCLASEFONDO()      Sets the current record's "NO_CLASE_FONDO" collection
 * @method NO_AGRUP_CONCEPTO   setNOAGRUPDETA()       Sets the current record's "NO_AGRUP_DETA" 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_AGRUP_CONCEPTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_AGRUP_CONCEPTO');
        $this->hasColumn('id_agrup_concepto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => false,
             '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('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('tipo_agrupacion', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasMany('NO_AGRUP_DETA', array(
             'local' => 'id_agrup_concepto',
             'foreign' => 'id_agrup_concepto'));
    }
}