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

/**
 * BaseTRANSPORTES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $descripcion
 * @property Doctrine_Collection $DESTINOS_COMISIONADOS
 * @property Doctrine_Collection $COMISIONADOS_PLANTA
 * @property Doctrine_Collection $COMISIONADOS_CONTRATO
 * 
 * @method integer             getId()                    Returns the current record's "id" value
 * @method string              getDescripcion()           Returns the current record's "descripcion" value
 * @method Doctrine_Collection getDESTINOSCOMISIONADOS()  Returns the current record's "DESTINOS_COMISIONADOS" collection
 * @method Doctrine_Collection getCOMISIONADOSPLANTA()    Returns the current record's "COMISIONADOS_PLANTA" collection
 * @method Doctrine_Collection getCOMISIONADOSCONTRATO()  Returns the current record's "COMISIONADOS_CONTRATO" collection
 * @method TRANSPORTES         setId()                    Sets the current record's "id" value
 * @method TRANSPORTES         setDescripcion()           Sets the current record's "descripcion" value
 * @method TRANSPORTES         setDESTINOSCOMISIONADOS()  Sets the current record's "DESTINOS_COMISIONADOS" collection
 * @method TRANSPORTES         setCOMISIONADOSPLANTA()    Sets the current record's "COMISIONADOS_PLANTA" collection
 * @method TRANSPORTES         setCOMISIONADOSCONTRATO()  Sets the current record's "COMISIONADOS_CONTRATO" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTRANSPORTES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TRANSPORTES');
        $this->hasColumn('id', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('DESTINOS_COMISIONADOS', array(
             'local' => 'id',
             'foreign' => 'id_transporte'));

        $this->hasMany('COMISIONADOS_PLANTA', array(
             'local' => 'id',
             'foreign' => 'id_transporte'));

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