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

/**
 * BaseCOM_TIQUETE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tiquete
 * @property integer $id_comision
 * @property integer $nitocc
 * @property timestamp $fecha_ini
 * @property timestamp $fecha_fin
 * @property integer $valor_tiquete
 * @property COM_COMISION $COM_COMISION
 * @property TERCEROS $TERCEROS
 * 
 * @method integer      getIdTiquete()     Returns the current record's "id_tiquete" value
 * @method integer      getIdComision()    Returns the current record's "id_comision" value
 * @method integer      getNitocc()        Returns the current record's "nitocc" value
 * @method timestamp    getFechaIni()      Returns the current record's "fecha_ini" value
 * @method timestamp    getFechaFin()      Returns the current record's "fecha_fin" value
 * @method integer      getValorTiquete()  Returns the current record's "valor_tiquete" value
 * @method COM_COMISION getCOMCOMISION()   Returns the current record's "COM_COMISION" value
 * @method TERCEROS     getTERCEROS()      Returns the current record's "TERCEROS" value
 * @method COM_TIQUETE  setIdTiquete()     Sets the current record's "id_tiquete" value
 * @method COM_TIQUETE  setIdComision()    Sets the current record's "id_comision" value
 * @method COM_TIQUETE  setNitocc()        Sets the current record's "nitocc" value
 * @method COM_TIQUETE  setFechaIni()      Sets the current record's "fecha_ini" value
 * @method COM_TIQUETE  setFechaFin()      Sets the current record's "fecha_fin" value
 * @method COM_TIQUETE  setValorTiquete()  Sets the current record's "valor_tiquete" value
 * @method COM_TIQUETE  setCOMCOMISION()   Sets the current record's "COM_COMISION" value
 * @method COM_TIQUETE  setTERCEROS()      Sets the current record's "TERCEROS" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOM_TIQUETE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_TIQUETE');
        $this->hasColumn('id_tiquete', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_comision', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tercero', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_ini', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor_tiquete', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('TERCEROS', array(
             'local' => 'id_tercero',
             'foreign' => 'id_tercero'));
    }
}