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

/**
 * BaseRH_PN_ORDEN
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $nombre
 * @property Doctrine_Collection $RH_AP_PLANTA
 * @property Doctrine_Collection $RH_PN_ESCALA
 * 
 * @method integer             getId()           Returns the current record's "id" value
 * @method string              getNombre()       Returns the current record's "nombre" value
 * @method Doctrine_Collection getRHAPPLANTA()   Returns the current record's "RH_AP_PLANTA" collection
 * @method Doctrine_Collection getRHPNESCALA()   Returns the current record's "RH_PN_ESCALA" collection
 * @method RH_PN_ORDEN         setId()           Sets the current record's "id" value
 * @method RH_PN_ORDEN         setNombre()       Sets the current record's "nombre" value
 * @method RH_PN_ORDEN         setRHAPPLANTA()   Sets the current record's "RH_AP_PLANTA" collection
 * @method RH_PN_ORDEN         setRHPNESCALA()   Sets the current record's "RH_PN_ESCALA" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_PN_ORDEN extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_PN_ORDEN');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
    }

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

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