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

/**
 * BaseNO_LOTE_HR_EXTRA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_lote_hr_extra
 * @property string $descripcion
 * @property integer $total_horas
 * @property integer $id_periodo
 * @property integer $estado
 * @property NO_PERIODO $NO_PERIODO
 * @property Doctrine_Collection $NO_HR_EXTRA
 * 
 * @method integer             getIdLoteHrExtra()    Returns the current record's "id_lote_hr_extra" value
 * @method string              getDescripcion()      Returns the current record's "descripcion" value
 * @method integer             getTotalHoras()       Returns the current record's "total_horas" value
 * @method integer             getIdPeriodo()        Returns the current record's "id_periodo" value
 * @method integer             getEstado()           Returns the current record's "estado" value
 * @method NO_PERIODO          getNOPERIODO()        Returns the current record's "NO_PERIODO" value
 * @method Doctrine_Collection getNOHREXTRA()        Returns the current record's "NO_HR_EXTRA" collection
 * @method NO_LOTE_HR_EXTRA    setIdLoteHrExtra()    Sets the current record's "id_lote_hr_extra" value
 * @method NO_LOTE_HR_EXTRA    setDescripcion()      Sets the current record's "descripcion" value
 * @method NO_LOTE_HR_EXTRA    setTotalHoras()       Sets the current record's "total_horas" value
 * @method NO_LOTE_HR_EXTRA    setIdPeriodo()        Sets the current record's "id_periodo" value
 * @method NO_LOTE_HR_EXTRA    setEstado()           Sets the current record's "estado" value
 * @method NO_LOTE_HR_EXTRA    setNOPERIODO()        Sets the current record's "NO_PERIODO" value
 * @method NO_LOTE_HR_EXTRA    setNOHREXTRA()        Sets the current record's "NO_HR_EXTRA" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_LOTE_HR_EXTRA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_LOTE_HR_EXTRA');
        $this->hasColumn('id_lote_hr_extra', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('total_horas', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_periodo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('NO_HR_EXTRA', array(
             'local' => 'id_lote_hr_extra',
             'foreign' => 'id_lote_hr_extra'));
    }
}