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

/**
 * BaseRE_LIQ
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $cod
 * @property string $descripcion
 * @property string $desc_c
 * @property Doctrine_Collection $TS_OBL_REG
 * @property Doctrine_Collection $RE_L_R
 * 
 * @method integer             getId()          Returns the current record's "id" value
 * @method string              getCod()         Returns the current record's "cod" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method string              getDescC()       Returns the current record's "desc_c" value
 * @method Doctrine_Collection getTSOBLREG()    Returns the current record's "TS_OBL_REG" collection
 * @method Doctrine_Collection getRELR()        Returns the current record's "RE_L_R" collection
 * @method RE_LIQ              setId()          Sets the current record's "id" value
 * @method RE_LIQ              setCod()         Sets the current record's "cod" value
 * @method RE_LIQ              setDescripcion() Sets the current record's "descripcion" value
 * @method RE_LIQ              setDescC()       Sets the current record's "desc_c" value
 * @method RE_LIQ              setTSOBLREG()    Sets the current record's "TS_OBL_REG" collection
 * @method RE_LIQ              setRELR()        Sets the current record's "RE_L_R" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_LIQ extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_LIQ');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('cod', 'string', 4, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('descripcion', 'string', 50, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('desc_c', 'string', 10, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
    }

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

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