<?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 AREAS $AREAS
 * @property RH_NP_DED_LEY $RH_NP_DED_LEY
 * 
 * @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 AREAS          getAREAS()         Returns the current record's "AREAS" value
 * @method RH_NP_DED_LEY  getRHNPDEDLEY()    Returns the current record's "RH_NP_DED_LEY" 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 setAREAS()         Sets the current record's "AREAS" value
 * @method RH_NP_LEY_AREA setRHNPDEDLEY()    Sets the current record's "RH_NP_DED_LEY" value
 * 
 * @package    cartera
 * @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('AREAS', array(
             'local' => 'id_area',
             'foreign' => 'id_area'));

        $this->hasOne('RH_NP_DED_LEY', array(
             'local' => 'id_ded_ley',
             'foreign' => 'id_ded_ley'));
    }
}