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

/**
 * BaseRE_LIQUIDACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_liq
 * @property string $cod_liq
 * @property string $descripcion
 * @property string $desc_corta
 * @property integer $estado
 * @property integer $tipo_liq
 * @property Doctrine_Collection $RE_OBLIGACION
 * @property Doctrine_Collection $RE_LIQ_DESCTO
 * 
 * @method integer             getIdLiq()         Returns the current record's "id_liq" value
 * @method string              getCodLiq()        Returns the current record's "cod_liq" value
 * @method string              getDescripcion()   Returns the current record's "descripcion" value
 * @method string              getDescCorta()     Returns the current record's "desc_corta" value
 * @method integer             getEstado()        Returns the current record's "estado" value
 * @method integer             getTipoLiq()       Returns the current record's "tipo_liq" value
 * @method Doctrine_Collection getREOBLIGACION()  Returns the current record's "RE_OBLIGACION" collection
 * @method Doctrine_Collection getRELIQDESCTO()   Returns the current record's "RE_LIQ_DESCTO" collection
 * @method RE_LIQUIDACION      setIdLiq()         Sets the current record's "id_liq" value
 * @method RE_LIQUIDACION      setCodLiq()        Sets the current record's "cod_liq" value
 * @method RE_LIQUIDACION      setDescripcion()   Sets the current record's "descripcion" value
 * @method RE_LIQUIDACION      setDescCorta()     Sets the current record's "desc_corta" value
 * @method RE_LIQUIDACION      setEstado()        Sets the current record's "estado" value
 * @method RE_LIQUIDACION      setTipoLiq()       Sets the current record's "tipo_liq" value
 * @method RE_LIQUIDACION      setREOBLIGACION()  Sets the current record's "RE_OBLIGACION" collection
 * @method RE_LIQUIDACION      setRELIQDESCTO()   Sets the current record's "RE_LIQ_DESCTO" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_LIQUIDACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_LIQUIDACION');
        $this->hasColumn('id_liq', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('cod_liq', 'string', 4, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('descripcion', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('desc_corta', 'string', 10, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('tipo_liq', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasMany('RE_LIQ_DESCTO', array(
             'local' => 'id_liq',
             'foreign' => 'id_liq'));
    }
}