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

/**
 * BaseCM_CONSECUTIVOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_consecutivo
 * @property integer $consecutivo_obligacion
 * @property integer $consecutivo_orden_pago
 * @property integer $consecutivo_emision
 * @property integer $id_caja_menor
 * @property integer $consecutivo_mov_banc
 * @property integer $consecutivo_recibo
 * @property CM_CAJA_MENOR $CM_CAJA_MENOR
 * 
 * @method integer         getId()                     Returns the current record's "id" value
 * @method integer         getIdConsecutivo()          Returns the current record's "id_consecutivo" value
 * @method integer         getConsecutivoObligacion()  Returns the current record's "consecutivo_obligacion" value
 * @method integer         getConsecutivoOrdenPago()   Returns the current record's "consecutivo_orden_pago" value
 * @method integer         getConsecutivoEmision()     Returns the current record's "consecutivo_emision" value
 * @method integer         getIdCajaMenor()            Returns the current record's "id_caja_menor" value
 * @method integer         getConsecutivoMovBanc()     Returns the current record's "consecutivo_mov_banc" value
 * @method integer         getConsecutivoRecibo()      Returns the current record's "consecutivo_recibo" value
 * @method CM_CAJA_MENOR   getCMCAJAMENOR()            Returns the current record's "CM_CAJA_MENOR" value
 * @method CM_CONSECUTIVOS setId()                     Sets the current record's "id" value
 * @method CM_CONSECUTIVOS setIdConsecutivo()          Sets the current record's "id_consecutivo" value
 * @method CM_CONSECUTIVOS setConsecutivoObligacion()  Sets the current record's "consecutivo_obligacion" value
 * @method CM_CONSECUTIVOS setConsecutivoOrdenPago()   Sets the current record's "consecutivo_orden_pago" value
 * @method CM_CONSECUTIVOS setConsecutivoEmision()     Sets the current record's "consecutivo_emision" value
 * @method CM_CONSECUTIVOS setIdCajaMenor()            Sets the current record's "id_caja_menor" value
 * @method CM_CONSECUTIVOS setConsecutivoMovBanc()     Sets the current record's "consecutivo_mov_banc" value
 * @method CM_CONSECUTIVOS setConsecutivoRecibo()      Sets the current record's "consecutivo_recibo" value
 * @method CM_CONSECUTIVOS setCMCAJAMENOR()            Sets the current record's "CM_CAJA_MENOR" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCM_CONSECUTIVOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CM_CONSECUTIVOS');
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'autoincrement' => true,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_consecutivo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('consecutivo_obligacion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('consecutivo_orden_pago', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('consecutivo_emision', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_caja_menor', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('consecutivo_mov_banc', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('consecutivo_recibo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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