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

/**
 * BaseRH_AP_ELEM_S
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_ele_sal
 * @property string $nombre
 * @property Doctrine_Collection $RH_AP_PRIMA
 * 
 * @method integer             getIdEleSal()    Returns the current record's "id_ele_sal" value
 * @method string              getNombre()      Returns the current record's "nombre" value
 * @method Doctrine_Collection getRHAPPRIMA()   Returns the current record's "RH_AP_PRIMA" collection
 * @method RH_AP_ELEM_S        setIdEleSal()    Sets the current record's "id_ele_sal" value
 * @method RH_AP_ELEM_S        setNombre()      Sets the current record's "nombre" value
 * @method RH_AP_ELEM_S        setRHAPPRIMA()   Sets the current record's "RH_AP_PRIMA" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_AP_ELEM_S extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_AP_ELEM_S');
        $this->hasColumn('id_ele_sal', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('RH_AP_PRIMA', array(
             'local' => 'id_ele_sal',
             'foreign' => 'id_ele_sa'));
    }
}