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

/**
 * BasePR_CDP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property decimal $valor
 * @property string $objeto
 * @property string $observacion
 * @property integer $numero
 * @property timestamp $fecha
 * @property integer $estado
 * @property integer $id_vigencia
 * @property string $ano_fiscal
 * @property timestamp $fechalog
 * @property string $usuariolog
 * @property integer $id_solicitud_cdp
 * @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    getObservacion()      Returns the current record's "observacion" value
 * @method integer   getNumero()           Returns the current record's "numero" value
 * @method timestamp getFecha()            Returns the current record's "fecha" value
 * @method integer   getEstado()           Returns the current record's "estado" value
 * @method integer   getIdVigencia()       Returns the current record's "id_vigencia" value
 * @method string    getAnoFiscal()        Returns the current record's "ano_fiscal" value
 * @method timestamp getFechalog()         Returns the current record's "fechalog" value
 * @method string    getUsuariolog()       Returns the current record's "usuariolog" value
 * @method integer   getIdSolicitudCdp()   Returns the current record's "id_solicitud_cdp" value
 * @method VIGENCIA  getVIGENCIA()         Returns the current record's "VIGENCIA" value
 * @method PR_CDP    setId()               Sets the current record's "id" value
 * @method PR_CDP    setValor()            Sets the current record's "valor" value
 * @method PR_CDP    setObjeto()           Sets the current record's "objeto" value
 * @method PR_CDP    setObservacion()      Sets the current record's "observacion" value
 * @method PR_CDP    setNumero()           Sets the current record's "numero" value
 * @method PR_CDP    setFecha()            Sets the current record's "fecha" value
 * @method PR_CDP    setEstado()           Sets the current record's "estado" value
 * @method PR_CDP    setIdVigencia()       Sets the current record's "id_vigencia" value
 * @method PR_CDP    setAnoFiscal()        Sets the current record's "ano_fiscal" value
 * @method PR_CDP    setFechalog()         Sets the current record's "fechalog" value
 * @method PR_CDP    setUsuariolog()       Sets the current record's "usuariolog" value
 * @method PR_CDP    setIdSolicitudCdp()   Sets the current record's "id_solicitud_cdp" value
 * @method PR_CDP    setVIGENCIA()         Sets the current record's "VIGENCIA" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_CDP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_CDP');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('objeto', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('observacion', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('numero', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('ano_fiscal', 'string', 1000, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 1000,
             ));
        $this->hasColumn('fechalog', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuariolog', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_solicitud_cdp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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