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

/**
 * BaseCA_CONSECUTIVO_CAJA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_punto_venta
 * @property integer $id_caja
 * @property integer $consec_fac
 * @property integer $sesion_caja
 * @property CA_CAJA $CA_CAJA
 * @property CA_PUNTO_VENTA $CA_PUNTO_VENTA
 * 
 * @method integer             getIdPuntoVenta()   Returns the current record's "id_punto_venta" value
 * @method integer             getIdCaja()         Returns the current record's "id_caja" value
 * @method integer             getConsecFac()      Returns the current record's "consec_fac" value
 * @method integer             getSesionCaja()     Returns the current record's "sesion_caja" value
 * @method CA_CAJA             getCACAJA()         Returns the current record's "CA_CAJA" value
 * @method CA_PUNTO_VENTA      getCAPUNTOVENTA()   Returns the current record's "CA_PUNTO_VENTA" value
 * @method CA_CONSECUTIVO_CAJA setIdPuntoVenta()   Sets the current record's "id_punto_venta" value
 * @method CA_CONSECUTIVO_CAJA setIdCaja()         Sets the current record's "id_caja" value
 * @method CA_CONSECUTIVO_CAJA setConsecFac()      Sets the current record's "consec_fac" value
 * @method CA_CONSECUTIVO_CAJA setSesionCaja()     Sets the current record's "sesion_caja" value
 * @method CA_CONSECUTIVO_CAJA setCACAJA()         Sets the current record's "CA_CAJA" value
 * @method CA_CONSECUTIVO_CAJA setCAPUNTOVENTA()   Sets the current record's "CA_PUNTO_VENTA" 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_CONSECUTIVO_CAJA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_CONSECUTIVO_CAJA');
        $this->hasColumn('id_punto_venta', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_caja', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('consec_fac', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('sesion_caja', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('CA_PUNTO_VENTA', array(
             'local' => 'id_punto_venta',
             'foreign' => 'id_punto_venta'));
    }
}