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

/**
 * BaseCA_CREDITO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_credito
 * @property integer $id_anhos
 * @property integer $id_punto_venta
 * @property integer $id_tipo_credito
 * @property integer $sec_credito
 * @property integer $id_con_credito
 * @property timestamp $fecha_proceso
 * @property integer $id_bn
 * @property integer $id_cb
 * @property integer $num_doc
 * @property string $oficina
 * @property decimal $valor
 * @property string $observaciones
 * @property integer $estado
 * @property timestamp $fecha_anu
 * @property string $motivo_anu
 * @property timestamp $fecha
 * @property integer $id_ts_td
 * @property string $usuariolog
 * @property integer $id_mae_ter
 * @property string $usuario_anu
 * 
 * @method integer    getIdCredito()       Returns the current record's "id_credito" value
 * @method integer    getIdAnhos()         Returns the current record's "id_anhos" value
 * @method integer    getIdPuntoVenta()    Returns the current record's "id_punto_venta" value
 * @method integer    getIdTipoCredito()   Returns the current record's "id_tipo_credito" value
 * @method integer    getSecCredito()      Returns the current record's "sec_credito" value
 * @method integer    getIdConCredito()    Returns the current record's "id_con_credito" value
 * @method timestamp  getFechaProceso()    Returns the current record's "fecha_proceso" value
 * @method integer    getIdBn()            Returns the current record's "id_bn" value
 * @method integer    getIdCb()            Returns the current record's "id_cb" value
 * @method integer    getNumDoc()          Returns the current record's "num_doc" value
 * @method string     getOficina()         Returns the current record's "oficina" value
 * @method decimal    getValor()           Returns the current record's "valor" value
 * @method string     getObservaciones()   Returns the current record's "observaciones" value
 * @method integer    getEstado()          Returns the current record's "estado" value
 * @method timestamp  getFechaAnu()        Returns the current record's "fecha_anu" value
 * @method string     getMotivoAnu()       Returns the current record's "motivo_anu" value
 * @method timestamp  getFecha()           Returns the current record's "fecha" value
 * @method integer    getIdTsTd()          Returns the current record's "id_ts_td" value
 * @method string     getUsuariolog()      Returns the current record's "usuariolog" value
 * @method integer    getIdMaeTer()        Returns the current record's "id_mae_ter" value
 * @method string     getUsuarioAnu()      Returns the current record's "usuario_anu" value
 * @method CA_CREDITO setIdCredito()       Sets the current record's "id_credito" value
 * @method CA_CREDITO setIdAnhos()         Sets the current record's "id_anhos" value
 * @method CA_CREDITO setIdPuntoVenta()    Sets the current record's "id_punto_venta" value
 * @method CA_CREDITO setIdTipoCredito()   Sets the current record's "id_tipo_credito" value
 * @method CA_CREDITO setSecCredito()      Sets the current record's "sec_credito" value
 * @method CA_CREDITO setIdConCredito()    Sets the current record's "id_con_credito" value
 * @method CA_CREDITO setFechaProceso()    Sets the current record's "fecha_proceso" value
 * @method CA_CREDITO setIdBn()            Sets the current record's "id_bn" value
 * @method CA_CREDITO setIdCb()            Sets the current record's "id_cb" value
 * @method CA_CREDITO setNumDoc()          Sets the current record's "num_doc" value
 * @method CA_CREDITO setOficina()         Sets the current record's "oficina" value
 * @method CA_CREDITO setValor()           Sets the current record's "valor" value
 * @method CA_CREDITO setObservaciones()   Sets the current record's "observaciones" value
 * @method CA_CREDITO setEstado()          Sets the current record's "estado" value
 * @method CA_CREDITO setFechaAnu()        Sets the current record's "fecha_anu" value
 * @method CA_CREDITO setMotivoAnu()       Sets the current record's "motivo_anu" value
 * @method CA_CREDITO setFecha()           Sets the current record's "fecha" value
 * @method CA_CREDITO setIdTsTd()          Sets the current record's "id_ts_td" value
 * @method CA_CREDITO setUsuariolog()      Sets the current record's "usuariolog" value
 * @method CA_CREDITO setIdMaeTer()        Sets the current record's "id_mae_ter" value
 * @method CA_CREDITO setUsuarioAnu()      Sets the current record's "usuario_anu" value
 * 
 * @package    radicacionVirtualCuentas
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_CREDITO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_CREDITO');
        $this->hasColumn('id_credito', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_anhos', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_punto_venta', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_credito', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('sec_credito', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_con_credito', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_bn', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cb', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('oficina', 'string', 45, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 45,
             ));
        $this->hasColumn('valor', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('observaciones', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_anu', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo_anu', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_ts_td', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('usuariolog', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('usuario_anu', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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