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

/**
 * BaseRH_AP_TIPO_P
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_pla
 * @property string $nombre
 * @property Doctrine_Collection $RH_AP_PLANTA
 * 
 * @method integer             getIdTipPla()     Returns the current record's "id_tip_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_TIPO_P        setIdTipPla()     Sets the current record's "id_tip_pla" value
 * @method RH_AP_TIPO_P        setNombre()       Sets the current record's "nombre" value
 * @method RH_AP_TIPO_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_TIPO_P extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_AP_TIPO_P');
        $this->hasColumn('id_tip_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_tip_pla',
             'foreign' => 'id_tipo_p'));
    }
}