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

/**
 * BasePRDEAVSAFI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_rp
 * @property string $codobj
 * @property string $codele
 * @property string $nitben
 * @property decimal $valor
 * 
 * @method integer    getId()            Returns the current record's "id" value
 * @method integer    getIdRp()          Returns the current record's "id_rp" value
 * @method string     getCodobj()        Returns the current record's "codobj" value
 * @method string     getCodele()        Returns the current record's "codele" value
 * @method string     getNitben()        Returns the current record's "nitben" value
 * @method decimal    getValorBruto()    Returns the current record's "valor_bruto" value
 * @method string     getObservaciones() Returns the current record's "observaciones" value
 * @method decimal    getValorIva()      Returns the current record's "valor_iva" value
 * @method decimal    getValor()         Returns the current record's "valor" value
 * @method PRDEAVSAFI setId()            Sets the current record's "id" value
 * @method PRDEAVSAFI setIdRp()          Sets the current record's "id_rp" value
 * @method PRDEAVSAFI setCodobj()        Sets the current record's "codobj" value
 * @method PRDEAVSAFI setCodele()        Sets the current record's "codele" value
 * @method PRDEAVSAFI setNitben()        Sets the current record's "nitben" value
 * @method PRDEAVSAFI setValorBruto()    Sets the current record's "valor_bruto" value
 * @method PRDEAVSAFI setObservaciones() Sets the current record's "observaciones" value
 * @method PRDEAVSAFI setValorIva()      Sets the current record's "valor_iva" value
 * @method PRDEAVSAFI setValor()         Sets the current record's "valor" value_bruto
 * @property string $observaciones
 * @property decimal $valor
 * 
 * @method integer    getId()            Returns the current record's "id" value
 * @method integer    getIdRp()          Returns the current record's "id_rp" value
 * @method string     getCodobj()        Returns the current record's "codobj" value
 * @method string     getCodele()        Returns the current record's "codele" value
 * @method string     getNitben()        Returns the current record's "nitben" value
 * @method decimal    getValorBruto()    Returns the current record's "valor_bruto" value
 * @method string     getObservaciones() Returns the current record's "observaciones" value
 * @method decimal    getValorIva()      Returns the current record's "valor_iva" value
 * @method decimal    getValor()         Returns the current record's "valor" value
 * @method PRDEAVSAFI setId()            Sets the current record's "id" value
 * @method PRDEAVSAFI setIdRp()          Sets the current record's "id_rp" value
 * @method PRDEAVSAFI setCodobj()        Sets the current record's "codobj" value
 * @method PRDEAVSAFI setCodele()        Sets the current record's "codele" value
 * @method PRDEAVSAFI setNitben()        Sets the current record's "nitben" value
 * @method PRDEAVSAFI setValorBruto()    Sets the current record's "valor_bruto" value
 * @method PRDEAVSAFI setObservaciones() Sets the current record's "observaciones" value
 * @method PRDEAVSAFI setValorIva()      Sets the current record's "valor_iva" value
 * @method PRDEAVSAFI setValor()         Sets the current record's "valor" value_iva
 * @property decimal $valor
 * 
 * @method integer    getId()            Returns the current record's "id" value
 * @method integer    getIdRp()          Returns the current record's "id_rp" value
 * @method string     getCodobj()        Returns the current record's "codobj" value
 * @method string     getCodele()        Returns the current record's "codele" value
 * @method string     getNitben()        Returns the current record's "nitben" value
 * @method decimal    getValorBruto()    Returns the current record's "valor_bruto" value
 * @method string     getObservaciones() Returns the current record's "observaciones" value
 * @method decimal    getValorIva()      Returns the current record's "valor_iva" value
 * @method decimal    getValor()         Returns the current record's "valor" value
 * @method PRDEAVSAFI setId()            Sets the current record's "id" value
 * @method PRDEAVSAFI setIdRp()          Sets the current record's "id_rp" value
 * @method PRDEAVSAFI setCodobj()        Sets the current record's "codobj" value
 * @method PRDEAVSAFI setCodele()        Sets the current record's "codele" value
 * @method PRDEAVSAFI setNitben()        Sets the current record's "nitben" value
 * @method PRDEAVSAFI setValorBruto()    Sets the current record's "valor_bruto" value
 * @method PRDEAVSAFI setObservaciones() Sets the current record's "observaciones" value
 * @method PRDEAVSAFI setValorIva()      Sets the current record's "valor_iva" value
 * @method PRDEAVSAFI setValor()         Sets the current record's "valor" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePRDEAVSAFI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PRDEAVSAFI');
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'autoincrement' => true,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_rp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('codobj', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('codele', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nitben', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_bruto', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('valor_iva', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('valor', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}