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

/**
 * BaseCONT_AFILIA_FONDO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_afilia_fondo
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property integer $id_clase_fondo
 * @property integer $id_mae_fondos
 * @property string $num_afiliacion
 * @property string $numero_doc
 * @property timestamp $fecha_doc
 * @property timestamp $fecha_ingreso
 * @property timestamp $fecha_retiro
 * @property integer $id_tipo_aporte
 * @property integer $riesgo
 * @property integer $estado
 * @property integer $id_periodo
 * @property NO_CLASE_FONDO $NO_CLASE_FONDO
 * @property NO_MAE_FONDOS $NO_MAE_FONDOS
 * @property NO_PERIODO $NO_PERIODO
 * @property NO_TIPO_APORTE $NO_TIPO_APORTE
 * @property CONTRATISTA $CONTRATISTA
 * @property CONTRATISTA $CONTRATISTA_6
 * @property CONTRATISTA $CONTRATISTA_7
 * @property CONTRATISTA $CONTRATISTA_8
 * 
 * @method integer           getIdAfiliaFondo()   Returns the current record's "id_afilia_fondo" value
 * @method integer           getIdTipoDoc()       Returns the current record's "id_tipo_doc" value
 * @method string            getNumDoc()          Returns the current record's "num_doc" value
 * @method integer           getIdClaseFondo()    Returns the current record's "id_clase_fondo" value
 * @method integer           getIdMaeFondos()     Returns the current record's "id_mae_fondos" value
 * @method string            getNumAfiliacion()   Returns the current record's "num_afiliacion" value
 * @method string            getNumeroDoc()       Returns the current record's "numero_doc" value
 * @method timestamp         getFechaDoc()        Returns the current record's "fecha_doc" value
 * @method timestamp         getFechaIngreso()    Returns the current record's "fecha_ingreso" value
 * @method timestamp         getFechaRetiro()     Returns the current record's "fecha_retiro" value
 * @method integer           getIdTipoAporte()    Returns the current record's "id_tipo_aporte" value
 * @method integer           getRiesgo()          Returns the current record's "riesgo" value
 * @method integer           getEstado()          Returns the current record's "estado" value
 * @method integer           getIdPeriodo()       Returns the current record's "id_periodo" value
 * @method NO_CLASE_FONDO    getNOCLASEFONDO()    Returns the current record's "NO_CLASE_FONDO" value
 * @method NO_MAE_FONDOS     getNOMAEFONDOS()     Returns the current record's "NO_MAE_FONDOS" value
 * @method NO_PERIODO        getNOPERIODO()       Returns the current record's "NO_PERIODO" value
 * @method NO_TIPO_APORTE    getNOTIPOAPORTE()    Returns the current record's "NO_TIPO_APORTE" value
 * @method CONTRATISTA       getCONTRATISTA()     Returns the current record's "CONTRATISTA" value
 * @method CONTRATISTA       getCONTRATISTA6()    Returns the current record's "CONTRATISTA_6" value
 * @method CONTRATISTA       getCONTRATISTA7()    Returns the current record's "CONTRATISTA_7" value
 * @method CONTRATISTA       getCONTRATISTA8()    Returns the current record's "CONTRATISTA_8" value
 * @method CONT_AFILIA_FONDO setIdAfiliaFondo()   Sets the current record's "id_afilia_fondo" value
 * @method CONT_AFILIA_FONDO setIdTipoDoc()       Sets the current record's "id_tipo_doc" value
 * @method CONT_AFILIA_FONDO setNumDoc()          Sets the current record's "num_doc" value
 * @method CONT_AFILIA_FONDO setIdClaseFondo()    Sets the current record's "id_clase_fondo" value
 * @method CONT_AFILIA_FONDO setIdMaeFondos()     Sets the current record's "id_mae_fondos" value
 * @method CONT_AFILIA_FONDO setNumAfiliacion()   Sets the current record's "num_afiliacion" value
 * @method CONT_AFILIA_FONDO setNumeroDoc()       Sets the current record's "numero_doc" value
 * @method CONT_AFILIA_FONDO setFechaDoc()        Sets the current record's "fecha_doc" value
 * @method CONT_AFILIA_FONDO setFechaIngreso()    Sets the current record's "fecha_ingreso" value
 * @method CONT_AFILIA_FONDO setFechaRetiro()     Sets the current record's "fecha_retiro" value
 * @method CONT_AFILIA_FONDO setIdTipoAporte()    Sets the current record's "id_tipo_aporte" value
 * @method CONT_AFILIA_FONDO setRiesgo()          Sets the current record's "riesgo" value
 * @method CONT_AFILIA_FONDO setEstado()          Sets the current record's "estado" value
 * @method CONT_AFILIA_FONDO setIdPeriodo()       Sets the current record's "id_periodo" value
 * @method CONT_AFILIA_FONDO setNOCLASEFONDO()    Sets the current record's "NO_CLASE_FONDO" value
 * @method CONT_AFILIA_FONDO setNOMAEFONDOS()     Sets the current record's "NO_MAE_FONDOS" value
 * @method CONT_AFILIA_FONDO setNOPERIODO()       Sets the current record's "NO_PERIODO" value
 * @method CONT_AFILIA_FONDO setNOTIPOAPORTE()    Sets the current record's "NO_TIPO_APORTE" value
 * @method CONT_AFILIA_FONDO setCONTRATISTA()     Sets the current record's "CONTRATISTA" value
 * @method CONT_AFILIA_FONDO setCONTRATISTA6()    Sets the current record's "CONTRATISTA_6" value
 * @method CONT_AFILIA_FONDO setCONTRATISTA7()    Sets the current record's "CONTRATISTA_7" value
 * @method CONT_AFILIA_FONDO setCONTRATISTA8()    Sets the current record's "CONTRATISTA_8" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCONT_AFILIA_FONDO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CONT_AFILIA_FONDO');
        $this->hasColumn('id_afilia_fondo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_clase_fondo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_fondos', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('num_afiliacion', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('numero_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_doc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_ingreso', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_retiro', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_tipo_aporte', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('riesgo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_periodo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('NO_MAE_FONDOS', array(
             'local' => 'id_mae_fondos',
             'foreign' => 'id_mae_fondos'));

        $this->hasOne('NO_PERIODO', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasOne('NO_TIPO_APORTE', array(
             'local' => 'id_tipo_aporte',
             'foreign' => 'id_tipo_aporte'));

        $this->hasOne('CONTRATISTA', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'id_tipo_doc'));

        $this->hasOne('CONTRATISTA as CONTRATISTA_6', array(
             'local' => 'num_doc',
             'foreign' => 'id_tipo_doc'));

        $this->hasOne('CONTRATISTA as CONTRATISTA_7', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'num_doc'));

        $this->hasOne('CONTRATISTA as CONTRATISTA_8', array(
             'local' => 'num_doc',
             'foreign' => 'num_doc'));
    }
}