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

/**
 * BaseRE_R_LEY
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $cod
 * @property string $decripcion
 * @property string $desc_c
 * @property decimal $porcentaje
 * @property integer $id_tercero
 * @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              getDecripcion() Returns the current record's "decripcion" value
 * @method string              getDescC()      Returns the current record's "desc_c" value
 * @method decimal             getPorcentaje() Returns the current record's "porcentaje" value
 * @method integer             getIdTercero()  Returns the current record's "id_tercero" value
 * @method Doctrine_Collection getRELR()       Returns the current record's "RE_L_R" collection
 * @method RE_R_LEY            setId()         Sets the current record's "id" value
 * @method RE_R_LEY            setCod()        Sets the current record's "cod" value
 * @method RE_R_LEY            setDecripcion() Sets the current record's "decripcion" value
 * @method RE_R_LEY            setDescC()      Sets the current record's "desc_c" value
 * @method RE_R_LEY            setPorcentaje() Sets the current record's "porcentaje" value
 * @method RE_R_LEY            setIdTercero()  Sets the current record's "id_tercero" value
 * @method RE_R_LEY            setRELR()       Sets the current record's "RE_L_R" 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_R_LEY extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_R_LEY');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             '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('decripcion', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('desc_c', 'string', 10, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('porcentaje', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tercero', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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