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

/**
 * BaseCBR_REGISTRO_CONCEPTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_registro_concepto
 * @property integer $id_titulo_minero
 * @property integer $id_resolucion_tit
 * @property integer $id_concepto_deuda
 * @property integer $valor
 * @property integer $abonos
 * @property integer $saldo
 * @property CBR_CONCEPTO_DEUDA $CBR_CONCEPTO_DEUDA
 * @property CBR_RESOLUCION_TIT $CBR_RESOLUCION_TIT
 * @property Doctrine_Collection $CBR_ABONO_CONCEPTO
 * 
 * @method integer               getIdRegistroConcepto()   Returns the current record's "id_registro_concepto" value
 * @method integer               getIdTituloMinero()       Returns the current record's "id_titulo_minero" value
 * @method integer               getIdResolucionTit()      Returns the current record's "id_resolucion_tit" value
 * @method integer               getIdConceptoDeuda()      Returns the current record's "id_concepto_deuda" value
 * @method integer               getValor()                Returns the current record's "valor" value
 * @method integer               getAbonos()               Returns the current record's "abonos" value
 * @method integer               getSaldo()                Returns the current record's "saldo" value
 * @method CBR_CONCEPTO_DEUDA    getCBRCONCEPTODEUDA()     Returns the current record's "CBR_CONCEPTO_DEUDA" value
 * @method CBR_RESOLUCION_TIT    getCBRRESOLUCIONTIT()     Returns the current record's "CBR_RESOLUCION_TIT" value
 * @method Doctrine_Collection   getCBRABONOCONCEPTO()     Returns the current record's "CBR_ABONO_CONCEPTO" collection
 * @method CBR_REGISTRO_CONCEPTO setIdRegistroConcepto()   Sets the current record's "id_registro_concepto" value
 * @method CBR_REGISTRO_CONCEPTO setIdTituloMinero()       Sets the current record's "id_titulo_minero" value
 * @method CBR_REGISTRO_CONCEPTO setIdResolucionTit()      Sets the current record's "id_resolucion_tit" value
 * @method CBR_REGISTRO_CONCEPTO setIdConceptoDeuda()      Sets the current record's "id_concepto_deuda" value
 * @method CBR_REGISTRO_CONCEPTO setValor()                Sets the current record's "valor" value
 * @method CBR_REGISTRO_CONCEPTO setAbonos()               Sets the current record's "abonos" value
 * @method CBR_REGISTRO_CONCEPTO setSaldo()                Sets the current record's "saldo" value
 * @method CBR_REGISTRO_CONCEPTO setCBRCONCEPTODEUDA()     Sets the current record's "CBR_CONCEPTO_DEUDA" value
 * @method CBR_REGISTRO_CONCEPTO setCBRRESOLUCIONTIT()     Sets the current record's "CBR_RESOLUCION_TIT" value
 * @method CBR_REGISTRO_CONCEPTO setCBRABONOCONCEPTO()     Sets the current record's "CBR_ABONO_CONCEPTO" 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_REGISTRO_CONCEPTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_REGISTRO_CONCEPTO');
        $this->hasColumn('id_registro_concepto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_titulo_minero', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_resolucion_tit', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_concepto_deuda', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('abonos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('saldo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('CBR_RESOLUCION_TIT', array(
             'local' => 'id_resolucion_tit',
             'foreign' => 'id_resolucion_tit'));

        $this->hasMany('CBR_ABONO_CONCEPTO', array(
             'local' => 'id_registro_concepto',
             'foreign' => 'id_registro_concepto'));
    }
}