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

/**
 * BaseRE_DES_NOV
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_des_nov
 * @property integer $id_des_pago
 * @property decimal $valor_inicial
 * @property decimal $debito
 * @property decimal $credito
 * @property decimal $valor_final
 * @property integer $tipo_doc
 * @property string $numero_doc
 * @property timestamp $fecha_doc
 * @property timestamp $fecha_proc
 * @property string $adjunto
 * @property string $observaciones
 * @property integer $estado
 * @property RE_DES_PAGO $RE_DES_PAGO
 * 
 * @method integer     getId()            Returns the current record's "id" value
 * @method integer     getIdDesNov()      Returns the current record's "id_des_nov" value
 * @method integer     getIdDesPago()     Returns the current record's "id_des_pago" value
 * @method decimal     getValorInicial()  Returns the current record's "valor_inicial" value
 * @method decimal     getDebito()        Returns the current record's "debito" value
 * @method decimal     getCredito()       Returns the current record's "credito" value
 * @method decimal     getValorFinal()    Returns the current record's "valor_final" value
 * @method integer     getTipoDoc()       Returns the current record's "tipo_doc" value
 * @method string      getNumeroDoc()     Returns the current record's "numero_doc" value
 * @method timestamp   getFechaDoc()      Returns the current record's "fecha_doc" value
 * @method timestamp   getFechaProc()     Returns the current record's "fecha_proc" value
 * @method string      getAdjunto()       Returns the current record's "adjunto" value
 * @method string      getObservaciones() Returns the current record's "observaciones" value
 * @method integer     getEstado()        Returns the current record's "estado" value
 * @method RE_DES_PAGO getREDESPAGO()     Returns the current record's "RE_DES_PAGO" value
 * @method RE_DES_NOV  setId()            Sets the current record's "id" value
 * @method RE_DES_NOV  setIdDesNov()      Sets the current record's "id_des_nov" value
 * @method RE_DES_NOV  setIdDesPago()     Sets the current record's "id_des_pago" value
 * @method RE_DES_NOV  setValorInicial()  Sets the current record's "valor_inicial" value
 * @method RE_DES_NOV  setDebito()        Sets the current record's "debito" value
 * @method RE_DES_NOV  setCredito()       Sets the current record's "credito" value
 * @method RE_DES_NOV  setValorFinal()    Sets the current record's "valor_final" value
 * @method RE_DES_NOV  setTipoDoc()       Sets the current record's "tipo_doc" value
 * @method RE_DES_NOV  setNumeroDoc()     Sets the current record's "numero_doc" value
 * @method RE_DES_NOV  setFechaDoc()      Sets the current record's "fecha_doc" value
 * @method RE_DES_NOV  setFechaProc()     Sets the current record's "fecha_proc" value
 * @method RE_DES_NOV  setAdjunto()       Sets the current record's "adjunto" value
 * @method RE_DES_NOV  setObservaciones() Sets the current record's "observaciones" value
 * @method RE_DES_NOV  setEstado()        Sets the current record's "estado" value
 * @method RE_DES_NOV  setREDESPAGO()     Sets the current record's "RE_DES_PAGO" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_DES_NOV extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_DES_NOV');
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'autoincrement' => true,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_des_nov', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_des_pago', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_inicial', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('debito', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('credito', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_final', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('tipo_doc', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('numero_doc', 'string', 64, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 64,
             ));
        $this->hasColumn('fecha_doc', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_proc', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('adjunto', 'string', 128, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('observaciones', 'string', 512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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