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

/**
 * BaseRH_AP_PRIMA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_prima
 * @property string $nombre
 * @property integer $id_denomi_em
 * @property integer $id_ele_sa
 * @property timestamp $fecha_i
 * @property timestamp $fecha_f
 * @property integer $importe
 * @property integer $porcentaje
 * @property decimal $valor
 * @property string $comentario
 * @property RH_AP_DEN_EMP $RH_AP_DEN_EMP
 * @property RH_AP_ELEM_S $RH_AP_ELEM_S
 * 
 * @method integer       getIdPrima()       Returns the current record's "id_prima" value
 * @method string        getNombre()        Returns the current record's "nombre" value
 * @method integer       getIdDenomiEm()    Returns the current record's "id_denomi_em" value
 * @method integer       getIdEleSa()       Returns the current record's "id_ele_sa" value
 * @method timestamp     getFechaI()        Returns the current record's "fecha_i" value
 * @method timestamp     getFechaF()        Returns the current record's "fecha_f" value
 * @method integer       getImporte()       Returns the current record's "importe" value
 * @method integer       getPorcentaje()    Returns the current record's "porcentaje" value
 * @method decimal       getValor()         Returns the current record's "valor" value
 * @method string        getComentario()    Returns the current record's "comentario" value
 * @method RH_AP_DEN_EMP getRHAPDENEMP()    Returns the current record's "RH_AP_DEN_EMP" value
 * @method RH_AP_ELEM_S  getRHAPELEMS()     Returns the current record's "RH_AP_ELEM_S" value
 * @method RH_AP_PRIMA   setIdPrima()       Sets the current record's "id_prima" value
 * @method RH_AP_PRIMA   setNombre()        Sets the current record's "nombre" value
 * @method RH_AP_PRIMA   setIdDenomiEm()    Sets the current record's "id_denomi_em" value
 * @method RH_AP_PRIMA   setIdEleSa()       Sets the current record's "id_ele_sa" value
 * @method RH_AP_PRIMA   setFechaI()        Sets the current record's "fecha_i" value
 * @method RH_AP_PRIMA   setFechaF()        Sets the current record's "fecha_f" value
 * @method RH_AP_PRIMA   setImporte()       Sets the current record's "importe" value
 * @method RH_AP_PRIMA   setPorcentaje()    Sets the current record's "porcentaje" value
 * @method RH_AP_PRIMA   setValor()         Sets the current record's "valor" value
 * @method RH_AP_PRIMA   setComentario()    Sets the current record's "comentario" value
 * @method RH_AP_PRIMA   setRHAPDENEMP()    Sets the current record's "RH_AP_DEN_EMP" value
 * @method RH_AP_PRIMA   setRHAPELEMS()     Sets the current record's "RH_AP_ELEM_S" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_AP_PRIMA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_AP_PRIMA');
        $this->hasColumn('id_prima', 'integer', 20, array(
             '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,
             ));
        $this->hasColumn('id_denomi_em', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_ele_sa', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_i', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_f', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('importe', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('porcentaje', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('comentario', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('RH_AP_DEN_EMP', array(
             'local' => 'id_denomi_em',
             'foreign' => 'id_den_emp'));

        $this->hasOne('RH_AP_ELEM_S', array(
             'local' => 'id_ele_sa',
             'foreign' => 'id_ele_sal'));
    }
}