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

/**
 * BaseCN_CONTROL_CAD_BK
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_cad
 * @property integer $id_vigencia
 * @property integer $id_cen_op
 * @property integer $id_cia
 * @property integer $id_periodo_contable
 * @property integer $id_tipo_comprobante
 * @property timestamp $fecha_cad
 * @property integer $tot_debito
 * @property integer $tot_credito
 * @property integer $id_ter_genero
 * @property integer $id_ter_reviso
 * @property integer $id_ter_aprobo
 * 
 * @method integer           getId()                  Returns the current record's "id" 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           getIdPeriodoContable()   Returns the current record's "id_periodo_contable" value
 * @method integer           getIdTipoComprobante()   Returns the current record's "id_tipo_comprobante" value
 * @method timestamp         getFechaCad()            Returns the current record's "fecha_cad" value
 * @method integer           getTotDebito()           Returns the current record's "tot_debito" value
 * @method integer           getTotCredito()          Returns the current record's "tot_credito" value
 * @method integer           getIdTerGenero()         Returns the current record's "id_ter_genero" value
 * @method integer           getIdTerReviso()         Returns the current record's "id_ter_reviso" value
 * @method integer           getIdTerAprobo()         Returns the current record's "id_ter_aprobo" value
 * @method CN_CONTROL_CAD_BK setId()                  Sets the current record's "id" value
 * @method CN_CONTROL_CAD_BK setIdCad()               Sets the current record's "id_cad" value
 * @method CN_CONTROL_CAD_BK setIdVigencia()          Sets the current record's "id_vigencia" value
 * @method CN_CONTROL_CAD_BK setIdCenOp()             Sets the current record's "id_cen_op" value
 * @method CN_CONTROL_CAD_BK setIdCia()               Sets the current record's "id_cia" value
 * @method CN_CONTROL_CAD_BK setIdPeriodoContable()   Sets the current record's "id_periodo_contable" value
 * @method CN_CONTROL_CAD_BK setIdTipoComprobante()   Sets the current record's "id_tipo_comprobante" value
 * @method CN_CONTROL_CAD_BK setFechaCad()            Sets the current record's "fecha_cad" value
 * @method CN_CONTROL_CAD_BK setTotDebito()           Sets the current record's "tot_debito" value
 * @method CN_CONTROL_CAD_BK setTotCredito()          Sets the current record's "tot_credito" value
 * @method CN_CONTROL_CAD_BK setIdTerGenero()         Sets the current record's "id_ter_genero" value
 * @method CN_CONTROL_CAD_BK setIdTerReviso()         Sets the current record's "id_ter_reviso" value
 * @method CN_CONTROL_CAD_BK setIdTerAprobo()         Sets the current record's "id_ter_aprobo" value
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_CONTROL_CAD_BK extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_CONTROL_CAD_BK');
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'autoincrement' => true,
             'primary' => true,
             '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_periodo_contable', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_comprobante', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_cad', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('tot_debito', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('tot_credito', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ter_genero', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ter_reviso', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ter_aprobo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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