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

/**
 * BaseCBR_DETALLE_CUOTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_detalle_cuota
 * @property integer $id_planifica_fp
 * @property integer $numero_cuota
 * @property timestamp $fecha_cuota
 * @property decimal $valor_cuota
 * @property decimal $valor_int_corri
 * @property decimal $valor_total
 * @property integer $pagada
 * @property CBR_PLANIFICA_FP $CBR_PLANIFICA_FP
 * @property Doctrine_Collection $CBR_ABONO_CUOTA
 * 
 * @method integer             getIdDetalleCuota()   Returns the current record's "id_detalle_cuota" value
 * @method integer             getIdPlanificaFp()    Returns the current record's "id_planifica_fp" value
 * @method integer             getNumeroCuota()      Returns the current record's "numero_cuota" value
 * @method timestamp           getFechaCuota()       Returns the current record's "fecha_cuota" value
 * @method decimal             getValorCuota()       Returns the current record's "valor_cuota" value
 * @method decimal             getValorIntCorri()    Returns the current record's "valor_int_corri" value
 * @method decimal             getValorTotal()       Returns the current record's "valor_total" value
 * @method integer             getPagada()           Returns the current record's "pagada" value
 * @method CBR_PLANIFICA_FP    getCBRPLANIFICAFP()   Returns the current record's "CBR_PLANIFICA_FP" value
 * @method Doctrine_Collection getCBRABONOCUOTA()    Returns the current record's "CBR_ABONO_CUOTA" collection
 * @method CBR_DETALLE_CUOTA   setIdDetalleCuota()   Sets the current record's "id_detalle_cuota" value
 * @method CBR_DETALLE_CUOTA   setIdPlanificaFp()    Sets the current record's "id_planifica_fp" value
 * @method CBR_DETALLE_CUOTA   setNumeroCuota()      Sets the current record's "numero_cuota" value
 * @method CBR_DETALLE_CUOTA   setFechaCuota()       Sets the current record's "fecha_cuota" value
 * @method CBR_DETALLE_CUOTA   setValorCuota()       Sets the current record's "valor_cuota" value
 * @method CBR_DETALLE_CUOTA   setValorIntCorri()    Sets the current record's "valor_int_corri" value
 * @method CBR_DETALLE_CUOTA   setValorTotal()       Sets the current record's "valor_total" value
 * @method CBR_DETALLE_CUOTA   setPagada()           Sets the current record's "pagada" value
 * @method CBR_DETALLE_CUOTA   setCBRPLANIFICAFP()   Sets the current record's "CBR_PLANIFICA_FP" value
 * @method CBR_DETALLE_CUOTA   setCBRABONOCUOTA()    Sets the current record's "CBR_ABONO_CUOTA" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCBR_DETALLE_CUOTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_DETALLE_CUOTA');
        $this->hasColumn('id_detalle_cuota', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_planifica_fp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('numero_cuota', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_cuota', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor_cuota', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_int_corri', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_total', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('pagada', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('CBR_ABONO_CUOTA', array(
             'local' => 'id_detalle_cuota',
             'foreign' => 'id_detalle_cuota'));
    }
}