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

/**
 * BasePR_AVANCES_COMISIONES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_avances_comisiones
 * @property integer $id_rp_comis
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property timestamp $fecha_legalizacion
 * @property timestamp $fecha_ini_comi
 * @property timestamp $fecha_fin_comi
 * @property float $dias_comi
 * @property timestamp $fecha_cierre
 * @property string $observaciones
 * @property integer $estado
 * @property string $usuario
 * @property timestamp $fecha_sys
 * @property integer $id_mae_ter
 * @property INTERCEROS $INTERCEROS
 * 
 * @method integer               getIdAvancesComisiones()   Returns the current record's "id_avances_comisiones" value
 * @method integer               getIdRpComis()             Returns the current record's "id_rp_comis" value
 * @method integer               getIdVigencia()            Returns the current record's "id_vigencia" value
 * @method string                getVigencia()              Returns the current record's "vigencia" value
 * @method timestamp             getFechaLegalizacion()     Returns the current record's "fecha_legalizacion" value
 * @method timestamp             getFechaIniComi()          Returns the current record's "fecha_ini_comi" value
 * @method timestamp             getFechaFinComi()          Returns the current record's "fecha_fin_comi" value
 * @method float                 getDiasComi()              Returns the current record's "dias_comi" value
 * @method timestamp             getFechaCierre()           Returns the current record's "fecha_cierre" value
 * @method string                getObservaciones()         Returns the current record's "observaciones" value
 * @method integer               getEstado()                Returns the current record's "estado" value
 * @method string                getUsuario()               Returns the current record's "usuario" value
 * @method timestamp             getFechaSys()              Returns the current record's "fecha_sys" value
 * @method integer               getIdMaeTer()              Returns the current record's "id_mae_ter" value
 * @method INTERCEROS            getINTERCEROS()            Returns the current record's "INTERCEROS" value
 * @method PR_AVANCES_COMISIONES setIdAvancesComisiones()   Sets the current record's "id_avances_comisiones" value
 * @method PR_AVANCES_COMISIONES setIdRpComis()             Sets the current record's "id_rp_comis" value
 * @method PR_AVANCES_COMISIONES setIdVigencia()            Sets the current record's "id_vigencia" value
 * @method PR_AVANCES_COMISIONES setVigencia()              Sets the current record's "vigencia" value
 * @method PR_AVANCES_COMISIONES setFechaLegalizacion()     Sets the current record's "fecha_legalizacion" value
 * @method PR_AVANCES_COMISIONES setFechaIniComi()          Sets the current record's "fecha_ini_comi" value
 * @method PR_AVANCES_COMISIONES setFechaFinComi()          Sets the current record's "fecha_fin_comi" value
 * @method PR_AVANCES_COMISIONES setDiasComi()              Sets the current record's "dias_comi" value
 * @method PR_AVANCES_COMISIONES setFechaCierre()           Sets the current record's "fecha_cierre" value
 * @method PR_AVANCES_COMISIONES setObservaciones()         Sets the current record's "observaciones" value
 * @method PR_AVANCES_COMISIONES setEstado()                Sets the current record's "estado" value
 * @method PR_AVANCES_COMISIONES setUsuario()               Sets the current record's "usuario" value
 * @method PR_AVANCES_COMISIONES setFechaSys()              Sets the current record's "fecha_sys" value
 * @method PR_AVANCES_COMISIONES setIdMaeTer()              Sets the current record's "id_mae_ter" value
 * @method PR_AVANCES_COMISIONES setINTERCEROS()            Sets the current record's "INTERCEROS" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_AVANCES_COMISIONES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_AVANCES_COMISIONES');
        $this->hasColumn('id_avances_comisiones', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_rp_comis', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_legalizacion', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_ini_comi', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin_comi', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('dias_comi', 'float', 22, array(
             'notnull' => false,
             'type' => 'float',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
        $this->hasColumn('fecha_cierre', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('estado', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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