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

/**
 * BaseRE_L_R
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_liq
 * @property integer $id_r
 * @property RE_LIQ $RE_LIQ
 * @property RE_R_LEY $RE_R_LEY
 * 
 * @method integer  getId()       Returns the current record's "id" value
 * @method integer  getIdLiq()    Returns the current record's "id_liq" value
 * @method integer  getIdR()      Returns the current record's "id_r" value
 * @method RE_LIQ   getRELIQ()    Returns the current record's "RE_LIQ" value
 * @method RE_R_LEY getRERLEY()   Returns the current record's "RE_R_LEY" value
 * @method RE_L_R   setId()       Sets the current record's "id" value
 * @method RE_L_R   setIdLiq()    Sets the current record's "id_liq" value
 * @method RE_L_R   setIdR()      Sets the current record's "id_r" value
 * @method RE_L_R   setRELIQ()    Sets the current record's "RE_LIQ" value
 * @method RE_L_R   setRERLEY()   Sets the current record's "RE_R_LEY" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_L_R extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_L_R');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_liq', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_r', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

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