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

/**
 * BaseRE_RECLASIF_BENE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_reclasif_bene
 * @property integer $id_anhos_ini
 * @property integer $id_meses_ini
 * @property integer $id_anhos_fin
 * @property integer $id_meses_fin
 * @property integer $id_mae_ter_ant
 * @property integer $id_mae_ter
 * @property integer $id_obligacion
 * @property timestamp $fecha_proc
 * @property string $observaciones
 * @property integer $id_usuario
 * @property ANHOS $ANHOS
 * @property ANHOS $ANHOS_2
 * @property MESES $MESES
 * @property MESES $MESES_4
 * @property INTERCEROS $INTERCEROS
 * @property INTERCEROS $INTERCEROS_6
 * 
 * @method integer          getIdReclasifBene()   Returns the current record's "id_reclasif_bene" value
 * @method integer          getIdAnhosIni()       Returns the current record's "id_anhos_ini" value
 * @method integer          getIdMesesIni()       Returns the current record's "id_meses_ini" value
 * @method integer          getIdAnhosFin()       Returns the current record's "id_anhos_fin" value
 * @method integer          getIdMesesFin()       Returns the current record's "id_meses_fin" value
 * @method integer          getIdMaeTerAnt()      Returns the current record's "id_mae_ter_ant" value
 * @method integer          getIdMaeTer()         Returns the current record's "id_mae_ter" value
 * @method integer          getIdObligacion()     Returns the current record's "id_obligacion" value
 * @method timestamp        getFechaProc()        Returns the current record's "fecha_proc" value
 * @method string           getObservaciones()    Returns the current record's "observaciones" value
 * @method integer          getIdUsuario()        Returns the current record's "id_usuario" value
 * @method ANHOS            getANHOS()            Returns the current record's "ANHOS" value
 * @method ANHOS            getANHOS2()           Returns the current record's "ANHOS_2" value
 * @method MESES            getMESES()            Returns the current record's "MESES" value
 * @method MESES            getMESES4()           Returns the current record's "MESES_4" value
 * @method INTERCEROS       getINTERCEROS()       Returns the current record's "INTERCEROS" value
 * @method INTERCEROS       getINTERCEROS6()      Returns the current record's "INTERCEROS_6" value
 * @method RE_RECLASIF_BENE setIdReclasifBene()   Sets the current record's "id_reclasif_bene" value
 * @method RE_RECLASIF_BENE setIdAnhosIni()       Sets the current record's "id_anhos_ini" value
 * @method RE_RECLASIF_BENE setIdMesesIni()       Sets the current record's "id_meses_ini" value
 * @method RE_RECLASIF_BENE setIdAnhosFin()       Sets the current record's "id_anhos_fin" value
 * @method RE_RECLASIF_BENE setIdMesesFin()       Sets the current record's "id_meses_fin" value
 * @method RE_RECLASIF_BENE setIdMaeTerAnt()      Sets the current record's "id_mae_ter_ant" value
 * @method RE_RECLASIF_BENE setIdMaeTer()         Sets the current record's "id_mae_ter" value
 * @method RE_RECLASIF_BENE setIdObligacion()     Sets the current record's "id_obligacion" value
 * @method RE_RECLASIF_BENE setFechaProc()        Sets the current record's "fecha_proc" value
 * @method RE_RECLASIF_BENE setObservaciones()    Sets the current record's "observaciones" value
 * @method RE_RECLASIF_BENE setIdUsuario()        Sets the current record's "id_usuario" value
 * @method RE_RECLASIF_BENE setANHOS()            Sets the current record's "ANHOS" value
 * @method RE_RECLASIF_BENE setANHOS2()           Sets the current record's "ANHOS_2" value
 * @method RE_RECLASIF_BENE setMESES()            Sets the current record's "MESES" value
 * @method RE_RECLASIF_BENE setMESES4()           Sets the current record's "MESES_4" value
 * @method RE_RECLASIF_BENE setINTERCEROS()       Sets the current record's "INTERCEROS" value
 * @method RE_RECLASIF_BENE setINTERCEROS6()      Sets the current record's "INTERCEROS_6" 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 BaseRE_RECLASIF_BENE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_RECLASIF_BENE');
        $this->hasColumn('id_reclasif_bene', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_anhos_ini', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_meses_ini', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_anhos_fin', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_meses_fin', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter_ant', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_obligacion', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_proc', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
        $this->hasColumn('id_usuario', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('ANHOS as ANHOS_2', array(
             'local' => 'id_anhos_fin',
             'foreign' => 'id_anhos'));

        $this->hasOne('MESES', array(
             'local' => 'id_meses_ini',
             'foreign' => 'id_meses'));

        $this->hasOne('MESES as MESES_4', array(
             'local' => 'id_meses_fin',
             'foreign' => 'id_meses'));

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter_ant',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('INTERCEROS as INTERCEROS_6', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));
    }
}