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

/**
 * BaseCBR_ABONO_CUOTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_abono_cuota
 * @property integer $id_detalle_cuota
 * @property timestamp $fecha_abono
 * @property decimal $valor_abono
 * @property decimal $valor_bruto
 * @property decimal $valor_int_corri
 * @property decimal $valor_int_mora
 * @property CBR_DETALLE_CUOTA $CBR_DETALLE_CUOTA
 * 
 * @method integer           getIdAbonoCuota()      Returns the current record's "id_abono_cuota" value
 * @method integer           getIdDetalleCuota()    Returns the current record's "id_detalle_cuota" value
 * @method timestamp         getFechaAbono()        Returns the current record's "fecha_abono" value
 * @method decimal           getValorAbono()        Returns the current record's "valor_abono" value
 * @method decimal           getValorBruto()        Returns the current record's "valor_bruto" value
 * @method decimal           getValorIntCorri()     Returns the current record's "valor_int_corri" value
 * @method decimal           getValorIntMora()      Returns the current record's "valor_int_mora" value
 * @method CBR_DETALLE_CUOTA getCBRDETALLECUOTA()   Returns the current record's "CBR_DETALLE_CUOTA" value
 * @method CBR_ABONO_CUOTA   setIdAbonoCuota()      Sets the current record's "id_abono_cuota" value
 * @method CBR_ABONO_CUOTA   setIdDetalleCuota()    Sets the current record's "id_detalle_cuota" value
 * @method CBR_ABONO_CUOTA   setFechaAbono()        Sets the current record's "fecha_abono" value
 * @method CBR_ABONO_CUOTA   setValorAbono()        Sets the current record's "valor_abono" value
 * @method CBR_ABONO_CUOTA   setValorBruto()        Sets the current record's "valor_bruto" value
 * @method CBR_ABONO_CUOTA   setValorIntCorri()     Sets the current record's "valor_int_corri" value
 * @method CBR_ABONO_CUOTA   setValorIntMora()      Sets the current record's "valor_int_mora" value
 * @method CBR_ABONO_CUOTA   setCBRDETALLECUOTA()   Sets the current record's "CBR_DETALLE_CUOTA" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCBR_ABONO_CUOTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_ABONO_CUOTA');
        $this->hasColumn('id_abono_cuota', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_detalle_cuota', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_abono', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor_abono', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_bruto', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_int_corri', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_int_mora', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
    }

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