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

/**
 * BaseNO_MAE_FONDOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_mae_fondos
 * @property string $codigo
 * @property string $razon_social
 * @property string $representante
 * @property string $direccion
 * @property string $telefono
 * @property string $fax
 * @property integer $id_tipo_entidad
 * @property integer $id_tipo_cobertura
 * @property integer $num_doc
 * @property integer $dv
 * @property integer $anhos
 * @property integer $meses
 * @property integer $dias
 * @property NO_TIPO_COBERTURA $NO_TIPO_COBERTURA
 * @property NO_TIPO_ENTIDAD $NO_TIPO_ENTIDAD
 * @property Doctrine_Collection $NO_UPC_ADICIONAL
 * @property Doctrine_Collection $NO_LIQUIDA_EXTRA
 * @property Doctrine_Collection $NO_LIQUIDA_APORTE
 * @property Doctrine_Collection $NO_FONDO_CONCEPTO
 * @property Doctrine_Collection $NO_AFILIA_FONDO
 * @property Doctrine_Collection $CONT_LIQUIDA_APORTE
 * @property Doctrine_Collection $CONT_AFILIA_FONDO
 * 
 * @method integer             getIdMaeFondos()         Returns the current record's "id_mae_fondos" value
 * @method string              getCodigo()              Returns the current record's "codigo" value
 * @method string              getRazonSocial()         Returns the current record's "razon_social" value
 * @method string              getRepresentante()       Returns the current record's "representante" value
 * @method string              getDireccion()           Returns the current record's "direccion" value
 * @method string              getTelefono()            Returns the current record's "telefono" value
 * @method string              getFax()                 Returns the current record's "fax" value
 * @method integer             getIdTipoEntidad()       Returns the current record's "id_tipo_entidad" value
 * @method integer             getIdTipoCobertura()     Returns the current record's "id_tipo_cobertura" value
 * @method integer             getNumDoc()              Returns the current record's "num_doc" value
 * @method integer             getDv()                  Returns the current record's "dv" value
 * @method integer             getAnhos()               Returns the current record's "anhos" value
 * @method integer             getMeses()               Returns the current record's "meses" value
 * @method integer             getDias()                Returns the current record's "dias" value
 * @method NO_TIPO_COBERTURA   getNOTIPOCOBERTURA()     Returns the current record's "NO_TIPO_COBERTURA" value
 * @method NO_TIPO_ENTIDAD     getNOTIPOENTIDAD()       Returns the current record's "NO_TIPO_ENTIDAD" 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 getNOFONDOCONCEPTO()     Returns the current record's "NO_FONDO_CONCEPTO" 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_MAE_FONDOS       setIdMaeFondos()         Sets the current record's "id_mae_fondos" value
 * @method NO_MAE_FONDOS       setCodigo()              Sets the current record's "codigo" value
 * @method NO_MAE_FONDOS       setRazonSocial()         Sets the current record's "razon_social" value
 * @method NO_MAE_FONDOS       setRepresentante()       Sets the current record's "representante" value
 * @method NO_MAE_FONDOS       setDireccion()           Sets the current record's "direccion" value
 * @method NO_MAE_FONDOS       setTelefono()            Sets the current record's "telefono" value
 * @method NO_MAE_FONDOS       setFax()                 Sets the current record's "fax" value
 * @method NO_MAE_FONDOS       setIdTipoEntidad()       Sets the current record's "id_tipo_entidad" value
 * @method NO_MAE_FONDOS       setIdTipoCobertura()     Sets the current record's "id_tipo_cobertura" value
 * @method NO_MAE_FONDOS       setNumDoc()              Sets the current record's "num_doc" value
 * @method NO_MAE_FONDOS       setDv()                  Sets the current record's "dv" value
 * @method NO_MAE_FONDOS       setAnhos()               Sets the current record's "anhos" value
 * @method NO_MAE_FONDOS       setMeses()               Sets the current record's "meses" value
 * @method NO_MAE_FONDOS       setDias()                Sets the current record's "dias" value
 * @method NO_MAE_FONDOS       setNOTIPOCOBERTURA()     Sets the current record's "NO_TIPO_COBERTURA" value
 * @method NO_MAE_FONDOS       setNOTIPOENTIDAD()       Sets the current record's "NO_TIPO_ENTIDAD" value
 * @method NO_MAE_FONDOS       setNOUPCADICIONAL()      Sets the current record's "NO_UPC_ADICIONAL" collection
 * @method NO_MAE_FONDOS       setNOLIQUIDAEXTRA()      Sets the current record's "NO_LIQUIDA_EXTRA" collection
 * @method NO_MAE_FONDOS       setNOLIQUIDAAPORTE()     Sets the current record's "NO_LIQUIDA_APORTE" collection
 * @method NO_MAE_FONDOS       setNOFONDOCONCEPTO()     Sets the current record's "NO_FONDO_CONCEPTO" collection
 * @method NO_MAE_FONDOS       setNOAFILIAFONDO()       Sets the current record's "NO_AFILIA_FONDO" collection
 * @method NO_MAE_FONDOS       setCONTLIQUIDAAPORTE()   Sets the current record's "CONT_LIQUIDA_APORTE" collection
 * @method NO_MAE_FONDOS       setCONTAFILIAFONDO()     Sets the current record's "CONT_AFILIA_FONDO" 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_MAE_FONDOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_MAE_FONDOS');
        $this->hasColumn('id_mae_fondos', '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('razon_social', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('representante', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('direccion', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('telefono', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('fax', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('id_tipo_entidad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_cobertura', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('dv', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('anhos', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('meses', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('dias', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('NO_TIPO_ENTIDAD', array(
             'local' => 'id_tipo_entidad',
             'foreign' => 'id_tipo_entidad'));

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

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

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

        $this->hasMany('NO_FONDO_CONCEPTO', array(
             'local' => 'id_mae_fondos',
             'foreign' => 'id_mae_fondos'));

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

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

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