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

/**
 * BaseRE_LIQ_DESCTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_liq_descto
 * @property integer $id_liq
 * @property integer $id_descto
 * @property integer $estado
 * @property RE_DESCUENTOS $RE_DESCUENTOS
 * @property RE_LIQUIDACION $RE_LIQUIDACION
 * 
 * @method integer        getIdLiqDescto()    Returns the current record's "id_liq_descto" value
 * @method integer        getIdLiq()          Returns the current record's "id_liq" value
 * @method integer        getIdDescto()       Returns the current record's "id_descto" value
 * @method integer        getEstado()         Returns the current record's "estado" value
 * @method RE_DESCUENTOS  getREDESCUENTOS()   Returns the current record's "RE_DESCUENTOS" value
 * @method RE_LIQUIDACION getRELIQUIDACION()  Returns the current record's "RE_LIQUIDACION" value
 * @method RE_LIQ_DESCTO  setIdLiqDescto()    Sets the current record's "id_liq_descto" value
 * @method RE_LIQ_DESCTO  setIdLiq()          Sets the current record's "id_liq" value
 * @method RE_LIQ_DESCTO  setIdDescto()       Sets the current record's "id_descto" value
 * @method RE_LIQ_DESCTO  setEstado()         Sets the current record's "estado" value
 * @method RE_LIQ_DESCTO  setREDESCUENTOS()   Sets the current record's "RE_DESCUENTOS" value
 * @method RE_LIQ_DESCTO  setRELIQUIDACION()  Sets the current record's "RE_LIQUIDACION" 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_LIQ_DESCTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_LIQ_DESCTO');
        $this->hasColumn('id_liq_descto', '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' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_descto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('RE_LIQUIDACION', array(
             'local' => 'id_liq',
             'foreign' => 'id_liq'));
    }
}