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

/**
 * BaseNO_CLASE_FONDO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_clase_fondo
 * @property string $codigo
 * @property string $descripcion
 * @property integer $id_agrup_concepto
 * @property integer $tipo_fondo_ss
 * @property NO_AGRUP_CONCEPTO $NO_AGRUP_CONCEPTO
 * @property Doctrine_Collection $NO_UPC_ADICIONAL
 * @property Doctrine_Collection $NO_LIQUIDA_EXTRA
 * @property Doctrine_Collection $NO_LIQUIDA_APORTE
 * @property Doctrine_Collection $NO_DESCUENTO_SS
 * @property Doctrine_Collection $NO_CONCEP_NOMINA
 * @property Doctrine_Collection $NO_AUTORIZACION
 * @property Doctrine_Collection $NO_AFILIA_FONDO
 * @property Doctrine_Collection $CONT_LIQUIDA_APORTE
 * @property Doctrine_Collection $CONT_AFILIA_FONDO
 * 
 * @method integer             getIdClaseFondo()        Returns the current record's "id_clase_fondo" value
 * @method string              getCodigo()              Returns the current record's "codigo" value
 * @method string              getDescripcion()         Returns the current record's "descripcion" value
 * @method integer             getIdAgrupConcepto()     Returns the current record's "id_agrup_concepto" value
 * @method integer             getTipoFondoSs()         Returns the current record's "tipo_fondo_ss" value
 * @method NO_AGRUP_CONCEPTO   getNOAGRUPCONCEPTO()     Returns the current record's "NO_AGRUP_CONCEPTO" value
 * @method Doctrine_Collection getNOUPCADICIONAL()      Returns the current record's "NO_UPC_ADICIONAL" collection
 * @method Doctrine_Collection getNOLIQUIDAEXTRA()      Returns the current record's "NO_LIQUIDA_EXTRA" collection
 * @method Doctrine_Collection getNOLIQUIDAAPORTE()     Returns the current record's "NO_LIQUIDA_APORTE" collection
 * @method Doctrine_Collection getNODESCUENTOSS()       Returns the current record's "NO_DESCUENTO_SS" collection
 * @method Doctrine_Collection getNOCONCEPNOMINA()      Returns the current record's "NO_CONCEP_NOMINA" collection
 * @method Doctrine_Collection getNOAUTORIZACION()      Returns the current record's "NO_AUTORIZACION" collection
 * @method Doctrine_Collection getNOAFILIAFONDO()       Returns the current record's "NO_AFILIA_FONDO" collection
 * @method Doctrine_Collection getCONTLIQUIDAAPORTE()   Returns the current record's "CONT_LIQUIDA_APORTE" collection
 * @method Doctrine_Collection getCONTAFILIAFONDO()     Returns the current record's "CONT_AFILIA_FONDO" collection
 * @method NO_CLASE_FONDO      setIdClaseFondo()        Sets the current record's "id_clase_fondo" value
 * @method NO_CLASE_FONDO      setCodigo()              Sets the current record's "codigo" value
 * @method NO_CLASE_FONDO      setDescripcion()         Sets the current record's "descripcion" value
 * @method NO_CLASE_FONDO      setIdAgrupConcepto()     Sets the current record's "id_agrup_concepto" value
 * @method NO_CLASE_FONDO      setTipoFondoSs()         Sets the current record's "tipo_fondo_ss" value
 * @method NO_CLASE_FONDO      setNOAGRUPCONCEPTO()     Sets the current record's "NO_AGRUP_CONCEPTO" value
 * @method NO_CLASE_FONDO      setNOUPCADICIONAL()      Sets the current record's "NO_UPC_ADICIONAL" collection
 * @method NO_CLASE_FONDO      setNOLIQUIDAEXTRA()      Sets the current record's "NO_LIQUIDA_EXTRA" collection
 * @method NO_CLASE_FONDO      setNOLIQUIDAAPORTE()     Sets the current record's "NO_LIQUIDA_APORTE" collection
 * @method NO_CLASE_FONDO      setNODESCUENTOSS()       Sets the current record's "NO_DESCUENTO_SS" collection
 * @method NO_CLASE_FONDO      setNOCONCEPNOMINA()      Sets the current record's "NO_CONCEP_NOMINA" collection
 * @method NO_CLASE_FONDO      setNOAUTORIZACION()      Sets the current record's "NO_AUTORIZACION" collection
 * @method NO_CLASE_FONDO      setNOAFILIAFONDO()       Sets the current record's "NO_AFILIA_FONDO" collection
 * @method NO_CLASE_FONDO      setCONTLIQUIDAAPORTE()   Sets the current record's "CONT_LIQUIDA_APORTE" collection
 * @method NO_CLASE_FONDO      setCONTAFILIAFONDO()     Sets the current record's "CONT_AFILIA_FONDO" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_CLASE_FONDO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_CLASE_FONDO');
        $this->hasColumn('id_clase_fondo', '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' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_agrup_concepto', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('tipo_fondo_ss', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasMany('NO_UPC_ADICIONAL', array(
             'local' => 'id_clase_fondo',
             'foreign' => 'id_clase_fondo'));

        $this->hasMany('NO_LIQUIDA_EXTRA', array(
             'local' => 'id_clase_fondo',
             'foreign' => 'id_clase_fondo'));

        $this->hasMany('NO_LIQUIDA_APORTE', array(
             'local' => 'id_clase_fondo',
             'foreign' => 'id_clase_fondo'));

        $this->hasMany('NO_DESCUENTO_SS', array(
             'local' => 'id_clase_fondo',
             'foreign' => 'id_clase_fondo'));

        $this->hasMany('NO_CONCEP_NOMINA', array(
             'local' => 'id_clase_fondo',
             'foreign' => 'id_clase_fondo'));

        $this->hasMany('NO_AUTORIZACION', array(
             'local' => 'id_clase_fondo',
             'foreign' => 'id_clase_fondo'));

        $this->hasMany('NO_AFILIA_FONDO', array(
             'local' => 'id_clase_fondo',
             'foreign' => 'id_clase_fondo'));

        $this->hasMany('CONT_LIQUIDA_APORTE', array(
             'local' => 'id_clase_fondo',
             'foreign' => 'id_clase_fondo'));

        $this->hasMany('CONT_AFILIA_FONDO', array(
             'local' => 'id_clase_fondo',
             'foreign' => 'id_clase_fondo'));
    }
}