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

/**
 * BaseCBR_CONCEPTO_DEUDA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_concepto_deuda
 * @property string $codigo
 * @property string $descripcion
 * @property integer $estado
 * @property Doctrine_Collection $CBR_REGISTRO_CONCEPTO
 * 
 * @method integer             getIdConceptoDeuda()       Returns the current record's "id_concepto_deuda" value
 * @method string              getCodigo()                Returns the current record's "codigo" value
 * @method string              getDescripcion()           Returns the current record's "descripcion" value
 * @method integer             getEstado()                Returns the current record's "estado" value
 * @method Doctrine_Collection getCBRREGISTROCONCEPTO()   Returns the current record's "CBR_REGISTRO_CONCEPTO" collection
 * @method CBR_CONCEPTO_DEUDA  setIdConceptoDeuda()       Sets the current record's "id_concepto_deuda" value
 * @method CBR_CONCEPTO_DEUDA  setCodigo()                Sets the current record's "codigo" value
 * @method CBR_CONCEPTO_DEUDA  setDescripcion()           Sets the current record's "descripcion" value
 * @method CBR_CONCEPTO_DEUDA  setEstado()                Sets the current record's "estado" value
 * @method CBR_CONCEPTO_DEUDA  setCBRREGISTROCONCEPTO()   Sets the current record's "CBR_REGISTRO_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_CONCEPTO_DEUDA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_CONCEPTO_DEUDA');
        $this->hasColumn('id_concepto_deuda', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 250, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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