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

/**
 * BaseCA_NOTA_DEBITO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nota_debito
 * @property string $descripcion
 * @property integer $usa_mineral
 * @property integer $id_grupo
 * @property string $cod_dian
 * @property integer $estado
 * @property CA_GRUPO $CA_GRUPO
 * 
 * @method integer        getIdNotaDebito()   Returns the current record's "id_nota_debito" value
 * @method string         getDescripcion()    Returns the current record's "descripcion" value
 * @method integer        getUsaMineral()     Returns the current record's "usa_mineral" value
 * @method integer        getIdGrupo()        Returns the current record's "id_grupo" value
 * @method string         getCodDian()        Returns the current record's "cod_dian" value
 * @method integer        getEstado()         Returns the current record's "estado" value
 * @method CA_GRUPO       getCAGRUPO()        Returns the current record's "CA_GRUPO" value
 * @method CA_NOTA_DEBITO setIdNotaDebito()   Sets the current record's "id_nota_debito" value
 * @method CA_NOTA_DEBITO setDescripcion()    Sets the current record's "descripcion" value
 * @method CA_NOTA_DEBITO setUsaMineral()     Sets the current record's "usa_mineral" value
 * @method CA_NOTA_DEBITO setIdGrupo()        Sets the current record's "id_grupo" value
 * @method CA_NOTA_DEBITO setCodDian()        Sets the current record's "cod_dian" value
 * @method CA_NOTA_DEBITO setEstado()         Sets the current record's "estado" value
 * @method CA_NOTA_DEBITO setCAGRUPO()        Sets the current record's "CA_GRUPO" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_NOTA_DEBITO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_NOTA_DEBITO');
        $this->hasColumn('id_nota_debito', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 256, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('usa_mineral', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             'default' => '0 ',
             ));
        $this->hasColumn('id_grupo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cod_dian', 'string', 6, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 6,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             'default' => '0 ',
             ));
    }

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