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

/**
 * BaseRH_AP_CLASI_P
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cla_pla
 * @property string $nombre
 * @property Doctrine_Collection $RH_AP_PLANTA
 * 
 * @method integer             getIdClaPla()     Returns the current record's "id_cla_pla" 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_AP_CLASI_P       setIdClaPla()     Sets the current record's "id_cla_pla" value
 * @method RH_AP_CLASI_P       setNombre()       Sets the current record's "nombre" value
 * @method RH_AP_CLASI_P       setRHAPPLANTA()   Sets the current record's "RH_AP_PLANTA" 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_AP_CLASI_P extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_AP_CLASI_P');
        $this->hasColumn('id_cla_pla', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

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