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

/**
 * BaseGD_LOTES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_proceso
 * @property integer $numero
 * @property GD_PROCESOS $GD_PROCESOS
 * 
 * @method integer     getId()          Returns the current record's "id" value
 * @method integer     getIdProceso()   Returns the current record's "id_proceso" value
 * @method integer     getNumero()      Returns the current record's "numero" value
 * @method GD_PROCESOS getGDPROCESOS()  Returns the current record's "GD_PROCESOS" value
 * @method GD_LOTES    setId()          Sets the current record's "id" value
 * @method GD_LOTES    setIdProceso()   Sets the current record's "id_proceso" value
 * @method GD_LOTES    setNumero()      Sets the current record's "numero" value
 * @method GD_LOTES    setGDPROCESOS()  Sets the current record's "GD_PROCESOS" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseGD_LOTES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('GD_LOTES');
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'autoincrement' => true,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_proceso', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('numero', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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