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

/**
 * BaseTARIFAS_DESTINO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $nitocc
 * @property integer $id_comision
 * @property integer $vigencia
 * @property integer $id_tarifa
 * @property integer $num_viajes
 * @property integer $total
 * @property COMISIONES $COMISIONES
 * @property COMISIONES $COMISIONES_2
 * @property COMISIONES $COMISIONES_3
 * @property COMISIONES $COMISIONES_4
 * @property TARIFAS_TAXIS $TARIFAS_TAXIS
 * @property TERCEROS $TERCEROS
 * 
 * @method integer         getNitocc()        Returns the current record's "nitocc" value
 * @method integer         getIdComision()    Returns the current record's "id_comision" value
 * @method integer         getVigencia()      Returns the current record's "vigencia" value
 * @method integer         getIdTarifa()      Returns the current record's "id_tarifa" value
 * @method integer         getNumViajes()     Returns the current record's "num_viajes" value
 * @method integer         getTotal()         Returns the current record's "total" value
 * @method COMISIONES      getCOMISIONES()    Returns the current record's "COMISIONES" value
 * @method COMISIONES      getCOMISIONES2()   Returns the current record's "COMISIONES_2" value
 * @method COMISIONES      getCOMISIONES3()   Returns the current record's "COMISIONES_3" value
 * @method COMISIONES      getCOMISIONES4()   Returns the current record's "COMISIONES_4" value
 * @method TARIFAS_TAXIS   getTARIFASTAXIS()  Returns the current record's "TARIFAS_TAXIS" value
 * @method TERCEROS        getTERCEROS()      Returns the current record's "TERCEROS" value
 * @method TARIFAS_DESTINO setNitocc()        Sets the current record's "nitocc" value
 * @method TARIFAS_DESTINO setIdComision()    Sets the current record's "id_comision" value
 * @method TARIFAS_DESTINO setVigencia()      Sets the current record's "vigencia" value
 * @method TARIFAS_DESTINO setIdTarifa()      Sets the current record's "id_tarifa" value
 * @method TARIFAS_DESTINO setNumViajes()     Sets the current record's "num_viajes" value
 * @method TARIFAS_DESTINO setTotal()         Sets the current record's "total" value
 * @method TARIFAS_DESTINO setCOMISIONES()    Sets the current record's "COMISIONES" value
 * @method TARIFAS_DESTINO setCOMISIONES2()   Sets the current record's "COMISIONES_2" value
 * @method TARIFAS_DESTINO setCOMISIONES3()   Sets the current record's "COMISIONES_3" value
 * @method TARIFAS_DESTINO setCOMISIONES4()   Sets the current record's "COMISIONES_4" value
 * @method TARIFAS_DESTINO setTARIFASTAXIS()  Sets the current record's "TARIFAS_TAXIS" value
 * @method TARIFAS_DESTINO setTERCEROS()      Sets the current record's "TERCEROS" 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 BaseTARIFAS_DESTINO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TARIFAS_DESTINO');
        $this->hasColumn('nitocc', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_comision', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('vigencia', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_tarifa', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('num_viajes', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('total', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('COMISIONES as COMISIONES_2', array(
             'local' => 'vigencia',
             'foreign' => 'id'));

        $this->hasOne('COMISIONES as COMISIONES_3', array(
             'local' => 'id_comision',
             'foreign' => 'vigencia'));

        $this->hasOne('COMISIONES as COMISIONES_4', array(
             'local' => 'vigencia',
             'foreign' => 'vigencia'));

        $this->hasOne('TARIFAS_TAXIS', array(
             'local' => 'id_tarifa',
             'foreign' => 'id'));

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