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

/**
 * BasePR_CDP_COMIS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property decimal $valor
 * @property string $objeto
 * @property string $actividades
 * @property string $observaciones
 * @property string $destinos
 * @property integer $numero
 * @property timestamp $fecha
 * @property timestamp $fecha_sistema
 * @property integer $id_comision
 * @property integer $id_vigencia
 * @property string $ano_fiscal
 * @property integer $estado
 * @property string $destinos_add
 * @property string $usuariolog
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer      getId()            Returns the current record's "id" value
 * @method decimal      getValor()         Returns the current record's "valor" value
 * @method string       getObjeto()        Returns the current record's "objeto" value
 * @method string       getActividades()   Returns the current record's "actividades" value
 * @method string       getObservaciones() Returns the current record's "observaciones" value
 * @method string       getDestinos()      Returns the current record's "destinos" value
 * @method integer      getNumero()        Returns the current record's "numero" value
 * @method timestamp    getFecha()         Returns the current record's "fecha" value
 * @method timestamp    getFechaSistema()  Returns the current record's "fecha_sistema" value
 * @method integer      getIdComision()    Returns the current record's "id_comision" value
 * @method integer      getIdVigencia()    Returns the current record's "id_vigencia" value
 * @method string       getAnoFiscal()     Returns the current record's "ano_fiscal" value
 * @method integer      getEstado()        Returns the current record's "estado" value
 * @method string       getDestinosAdd()   Returns the current record's "destinos_add" value
 * @method string       getUsuariolog()    Returns the current record's "usuariolog" value
 * @method VIGENCIA     getVIGENCIA()      Returns the current record's "VIGENCIA" value
 * @method PR_CDP_COMIS setId()            Sets the current record's "id" value
 * @method PR_CDP_COMIS setValor()         Sets the current record's "valor" value
 * @method PR_CDP_COMIS setObjeto()        Sets the current record's "objeto" value
 * @method PR_CDP_COMIS setActividades()   Sets the current record's "actividades" value
 * @method PR_CDP_COMIS setObservaciones() Sets the current record's "observaciones" value
 * @method PR_CDP_COMIS setDestinos()      Sets the current record's "destinos" value
 * @method PR_CDP_COMIS setNumero()        Sets the current record's "numero" value
 * @method PR_CDP_COMIS setFecha()         Sets the current record's "fecha" value
 * @method PR_CDP_COMIS setFechaSistema()  Sets the current record's "fecha_sistema" value
 * @method PR_CDP_COMIS setIdComision()    Sets the current record's "id_comision" value
 * @method PR_CDP_COMIS setIdVigencia()    Sets the current record's "id_vigencia" value
 * @method PR_CDP_COMIS setAnoFiscal()     Sets the current record's "ano_fiscal" value
 * @method PR_CDP_COMIS setEstado()        Sets the current record's "estado" value
 * @method PR_CDP_COMIS setDestinosAdd()   Sets the current record's "destinos_add" value
 * @method PR_CDP_COMIS setUsuariolog()    Sets the current record's "usuariolog" value
 * @method PR_CDP_COMIS setVIGENCIA()      Sets the current record's "VIGENCIA" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_CDP_COMIS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_CDP_COMIS');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('objeto', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('actividades', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('observaciones', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('destinos', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('numero', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_sistema', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_comision', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('ano_fiscal', 'string', 24, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 24,
             ));
        $this->hasColumn('estado', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('destinos_add', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('usuariolog', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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