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

/**
 * BaseCBR_DETALLE_PAGO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_detalle_pago
 * @property integer $id_planifica_fp
 * @property integer $id_debito
 * @property CA_DEBITO $CA_DEBITO
 * @property CBR_PLANIFICA_FP $CBR_PLANIFICA_FP
 * 
 * @method integer          getIdDetallePago()    Returns the current record's "id_detalle_pago" value
 * @method integer          getIdPlanificaFp()    Returns the current record's "id_planifica_fp" value
 * @method integer          getIdDebito()         Returns the current record's "id_debito" value
 * @method CA_DEBITO        getCADEBITO()         Returns the current record's "CA_DEBITO" value
 * @method CBR_PLANIFICA_FP getCBRPLANIFICAFP()   Returns the current record's "CBR_PLANIFICA_FP" value
 * @method CBR_DETALLE_PAGO setIdDetallePago()    Sets the current record's "id_detalle_pago" value
 * @method CBR_DETALLE_PAGO setIdPlanificaFp()    Sets the current record's "id_planifica_fp" value
 * @method CBR_DETALLE_PAGO setIdDebito()         Sets the current record's "id_debito" value
 * @method CBR_DETALLE_PAGO setCADEBITO()         Sets the current record's "CA_DEBITO" value
 * @method CBR_DETALLE_PAGO setCBRPLANIFICAFP()   Sets the current record's "CBR_PLANIFICA_FP" 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_DETALLE_PAGO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_DETALLE_PAGO');
        $this->hasColumn('id_detalle_pago', '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('id_debito', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('CBR_PLANIFICA_FP', array(
             'local' => 'id_planifica_fp',
             'foreign' => 'id_planifica_fp'));
    }
}