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

/**
 * BaseRH_PN_CLASE_PLANTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_clase_pla
 * @property string $codigo
 * @property string $nombre
 * @property Doctrine_Collection $RH_AP_PLANTA
 * 
 * @method integer             getIdClasePla()   Returns the current record's "id_clase_pla" value
 * @method string              getCodigo()       Returns the current record's "codigo" 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 RH_PN_CLASE_PLANTA  setIdClasePla()   Sets the current record's "id_clase_pla" value
 * @method RH_PN_CLASE_PLANTA  setCodigo()       Sets the current record's "codigo" value
 * @method RH_PN_CLASE_PLANTA  setNombre()       Sets the current record's "nombre" value
 * @method RH_PN_CLASE_PLANTA  setRHAPPLANTA()   Sets the current record's "RH_AP_PLANTA" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_PN_CLASE_PLANTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_PN_CLASE_PLANTA');
        $this->hasColumn('id_clase_pla', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 202, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 202,
             ));
    }

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