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

/**
 * BaseDESTINOS_COMISIONADOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $nitocc
 * @property integer $id_comision
 * @property string $codmun
 * @property integer $orden
 * @property integer $estado
 * @property integer $vigencia
 * @property integer $id_transporte
 * @property COMISIONES $COMISIONES
 * @property COMISIONES $COMISIONES_2
 * @property COMISIONES $COMISIONES_3
 * @property COMISIONES $COMISIONES_4
 * @property TERCEROS $TERCEROS
 * @property TRANSPORTES $TRANSPORTES
 * 
 * @method integer               getNitocc()        Returns the current record's "nitocc" value
 * @method integer               getIdComision()    Returns the current record's "id_comision" value
 * @method string                getCodmun()        Returns the current record's "codmun" value
 * @method integer               getOrden()         Returns the current record's "orden" value
 * @method integer               getEstado()        Returns the current record's "estado" value
 * @method integer               getVigencia()      Returns the current record's "vigencia" value
 * @method integer               getIdTransporte()  Returns the current record's "id_transporte" 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 TERCEROS              getTERCEROS()      Returns the current record's "TERCEROS" value
 * @method TRANSPORTES           getTRANSPORTES()   Returns the current record's "TRANSPORTES" value
 * @method DESTINOS_COMISIONADOS setNitocc()        Sets the current record's "nitocc" value
 * @method DESTINOS_COMISIONADOS setIdComision()    Sets the current record's "id_comision" value
 * @method DESTINOS_COMISIONADOS setCodmun()        Sets the current record's "codmun" value
 * @method DESTINOS_COMISIONADOS setOrden()         Sets the current record's "orden" value
 * @method DESTINOS_COMISIONADOS setEstado()        Sets the current record's "estado" value
 * @method DESTINOS_COMISIONADOS setVigencia()      Sets the current record's "vigencia" value
 * @method DESTINOS_COMISIONADOS setIdTransporte()  Sets the current record's "id_transporte" value
 * @method DESTINOS_COMISIONADOS setCOMISIONES()    Sets the current record's "COMISIONES" value
 * @method DESTINOS_COMISIONADOS setCOMISIONES2()   Sets the current record's "COMISIONES_2" value
 * @method DESTINOS_COMISIONADOS setCOMISIONES3()   Sets the current record's "COMISIONES_3" value
 * @method DESTINOS_COMISIONADOS setCOMISIONES4()   Sets the current record's "COMISIONES_4" value
 * @method DESTINOS_COMISIONADOS setTERCEROS()      Sets the current record's "TERCEROS" value
 * @method DESTINOS_COMISIONADOS setTRANSPORTES()   Sets the current record's "TRANSPORTES" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseDESTINOS_COMISIONADOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('DESTINOS_COMISIONADOS');
        $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('codmun', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('orden', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => 'NULL',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('vigencia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_transporte', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             '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' => 'id_comision',
             'foreign' => 'vigencia'));

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

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

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

        $this->hasOne('TRANSPORTES', array(
             'local' => 'id_transporte',
             'foreign' => 'id'));
    }
}