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

/**
 * BaseCN_DOCUMENTO_BK
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_documento
 * @property integer $id_cad
 * @property integer $id_vigencia
 * @property integer $id_cen_op
 * @property integer $id_cia
 * @property integer $id_td
 * @property integer $id_mae_ter
 * @property string $descr_mto
 * @property string $doc_soporte
 * @property timestamp $fecha_soporte
 * @property decimal $tot_debito
 * @property decimal $tot_credito
 * 
 * @method integer         getId()            Returns the current record's "id" value
 * @method integer         getIdDocumento()   Returns the current record's "id_documento" value
 * @method integer         getIdCad()         Returns the current record's "id_cad" value
 * @method integer         getIdVigencia()    Returns the current record's "id_vigencia" value
 * @method integer         getIdCenOp()       Returns the current record's "id_cen_op" value
 * @method integer         getIdCia()         Returns the current record's "id_cia" value
 * @method integer         getIdTd()          Returns the current record's "id_td" value
 * @method integer         getIdMaeTer()      Returns the current record's "id_mae_ter" value
 * @method string          getDescrMto()      Returns the current record's "descr_mto" value
 * @method string          getDocSoporte()    Returns the current record's "doc_soporte" value
 * @method timestamp       getFechaSoporte()  Returns the current record's "fecha_soporte" value
 * @method decimal         getTotDebito()     Returns the current record's "tot_debito" value
 * @method decimal         getTotCredito()    Returns the current record's "tot_credito" value
 * @method CN_DOCUMENTO_BK setId()            Sets the current record's "id" value
 * @method CN_DOCUMENTO_BK setIdDocumento()   Sets the current record's "id_documento" value
 * @method CN_DOCUMENTO_BK setIdCad()         Sets the current record's "id_cad" value
 * @method CN_DOCUMENTO_BK setIdVigencia()    Sets the current record's "id_vigencia" value
 * @method CN_DOCUMENTO_BK setIdCenOp()       Sets the current record's "id_cen_op" value
 * @method CN_DOCUMENTO_BK setIdCia()         Sets the current record's "id_cia" value
 * @method CN_DOCUMENTO_BK setIdTd()          Sets the current record's "id_td" value
 * @method CN_DOCUMENTO_BK setIdMaeTer()      Sets the current record's "id_mae_ter" value
 * @method CN_DOCUMENTO_BK setDescrMto()      Sets the current record's "descr_mto" value
 * @method CN_DOCUMENTO_BK setDocSoporte()    Sets the current record's "doc_soporte" value
 * @method CN_DOCUMENTO_BK setFechaSoporte()  Sets the current record's "fecha_soporte" value
 * @method CN_DOCUMENTO_BK setTotDebito()     Sets the current record's "tot_debito" value
 * @method CN_DOCUMENTO_BK setTotCredito()    Sets the current record's "tot_credito" value
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_DOCUMENTO_BK extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_DOCUMENTO_BK');
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'autoincrement' => true,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_documento', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cad', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_vigencia', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cia', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_td', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('descr_mto', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('doc_soporte', 'string', 32, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 32,
             ));
        $this->hasColumn('fecha_soporte', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('tot_debito', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('tot_credito', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}