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

/**
 * BaseRH_AP_HO_LAB
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_hor_lab
 * @property integer $hora
 * @property string $tipo_tiempo
 * @property Doctrine_Collection $RH_AP_DEN_EMP
 * 
 * @method integer             getIdHorLab()      Returns the current record's "id_hor_lab" value
 * @method integer             getHora()          Returns the current record's "hora" value
 * @method string              getTipoTiempo()    Returns the current record's "tipo_tiempo" value
 * @method Doctrine_Collection getRHAPDENEMP()    Returns the current record's "RH_AP_DEN_EMP" collection
 * @method RH_AP_HO_LAB        setIdHorLab()      Sets the current record's "id_hor_lab" value
 * @method RH_AP_HO_LAB        setHora()          Sets the current record's "hora" value
 * @method RH_AP_HO_LAB        setTipoTiempo()    Sets the current record's "tipo_tiempo" value
 * @method RH_AP_HO_LAB        setRHAPDENEMP()    Sets the current record's "RH_AP_DEN_EMP" collection
 * 
 * @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_HO_LAB extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_AP_HO_LAB');
        $this->hasColumn('id_hor_lab', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('hora', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tipo_tiempo', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('RH_AP_DEN_EMP', array(
             'local' => 'id_hor_lab',
             'foreign' => 'id_hora_la'));
    }
}