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

/**
 * BaseRH_NP_LEY_AREA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_ley_area
 * @property integer $id_ded_ley
 * @property integer $id_area
 * @property string $porcentaje
 * @property AREA $AREA
 * 
 * @method integer        getIdLeyArea()   Returns the current record's "id_ley_area" value
 * @method integer        getIdDedLey()    Returns the current record's "id_ded_ley" value
 * @method integer        getIdArea()      Returns the current record's "id_area" value
 * @method string         getPorcentaje()  Returns the current record's "porcentaje" value
 * @method AREA           getAREA()        Returns the current record's "AREA" value
 * @method RH_NP_LEY_AREA setIdLeyArea()   Sets the current record's "id_ley_area" value
 * @method RH_NP_LEY_AREA setIdDedLey()    Sets the current record's "id_ded_ley" value
 * @method RH_NP_LEY_AREA setIdArea()      Sets the current record's "id_area" value
 * @method RH_NP_LEY_AREA setPorcentaje()  Sets the current record's "porcentaje" value
 * @method RH_NP_LEY_AREA setAREA()        Sets the current record's "AREA" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_NP_LEY_AREA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_NP_LEY_AREA');
        $this->hasColumn('id_ley_area', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_ded_ley', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_area', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('porcentaje', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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