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

/**
 * BaseNO_TIPO_HR_EXTRA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_hr_extra
 * @property string $codigo
 * @property string $descripcion
 * @property integer $id_concep_nomina
 * @property decimal $factor
 * @property integer $festivo
 * @property NO_CONCEP_NOMINA $NO_CONCEP_NOMINA
 * @property Doctrine_Collection $NO_HR_EXTRA
 * 
 * @method integer             getIdTipoHrExtra()    Returns the current record's "id_tipo_hr_extra" value
 * @method string              getCodigo()           Returns the current record's "codigo" value
 * @method string              getDescripcion()      Returns the current record's "descripcion" value
 * @method integer             getIdConcepNomina()   Returns the current record's "id_concep_nomina" value
 * @method decimal             getFactor()           Returns the current record's "factor" value
 * @method integer             getFestivo()          Returns the current record's "festivo" value
 * @method NO_CONCEP_NOMINA    getNOCONCEPNOMINA()   Returns the current record's "NO_CONCEP_NOMINA" value
 * @method Doctrine_Collection getNOHREXTRA()        Returns the current record's "NO_HR_EXTRA" collection
 * @method NO_TIPO_HR_EXTRA    setIdTipoHrExtra()    Sets the current record's "id_tipo_hr_extra" value
 * @method NO_TIPO_HR_EXTRA    setCodigo()           Sets the current record's "codigo" value
 * @method NO_TIPO_HR_EXTRA    setDescripcion()      Sets the current record's "descripcion" value
 * @method NO_TIPO_HR_EXTRA    setIdConcepNomina()   Sets the current record's "id_concep_nomina" value
 * @method NO_TIPO_HR_EXTRA    setFactor()           Sets the current record's "factor" value
 * @method NO_TIPO_HR_EXTRA    setFestivo()          Sets the current record's "festivo" value
 * @method NO_TIPO_HR_EXTRA    setNOCONCEPNOMINA()   Sets the current record's "NO_CONCEP_NOMINA" value
 * @method NO_TIPO_HR_EXTRA    setNOHREXTRA()        Sets the current record's "NO_HR_EXTRA" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_TIPO_HR_EXTRA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_TIPO_HR_EXTRA');
        $this->hasColumn('id_tipo_hr_extra', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_concep_nomina', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('factor', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('festivo', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

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