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

/**
 * BaseNO_CONCEP_AB
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_concep_ab
 * @property integer $id_concep_nomina
 * @property decimal $rango_minimo
 * @property decimal $rango_maximo
 * @property decimal $valor_fijo
 * @property decimal $porcentaje
 * @property integer $horas
 * @property integer $estado
 * @property NO_CONCEP_NOMINA $NO_CONCEP_NOMINA
 * 
 * @method integer          getIdConcepAb()       Returns the current record's "id_concep_ab" value
 * @method integer          getIdConcepNomina()   Returns the current record's "id_concep_nomina" value
 * @method decimal          getRangoMinimo()      Returns the current record's "rango_minimo" value
 * @method decimal          getRangoMaximo()      Returns the current record's "rango_maximo" value
 * @method decimal          getValorFijo()        Returns the current record's "valor_fijo" value
 * @method decimal          getPorcentaje()       Returns the current record's "porcentaje" value
 * @method integer          getHoras()            Returns the current record's "horas" value
 * @method integer          getEstado()           Returns the current record's "estado" value
 * @method NO_CONCEP_NOMINA getNOCONCEPNOMINA()   Returns the current record's "NO_CONCEP_NOMINA" value
 * @method NO_CONCEP_AB     setIdConcepAb()       Sets the current record's "id_concep_ab" value
 * @method NO_CONCEP_AB     setIdConcepNomina()   Sets the current record's "id_concep_nomina" value
 * @method NO_CONCEP_AB     setRangoMinimo()      Sets the current record's "rango_minimo" value
 * @method NO_CONCEP_AB     setRangoMaximo()      Sets the current record's "rango_maximo" value
 * @method NO_CONCEP_AB     setValorFijo()        Sets the current record's "valor_fijo" value
 * @method NO_CONCEP_AB     setPorcentaje()       Sets the current record's "porcentaje" value
 * @method NO_CONCEP_AB     setHoras()            Sets the current record's "horas" value
 * @method NO_CONCEP_AB     setEstado()           Sets the current record's "estado" value
 * @method NO_CONCEP_AB     setNOCONCEPNOMINA()   Sets the current record's "NO_CONCEP_NOMINA" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_CONCEP_AB extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_CONCEP_AB');
        $this->hasColumn('id_concep_ab', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_concep_nomina', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('rango_minimo', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('rango_maximo', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_fijo', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('porcentaje', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('horas', 'integer', 20, array(
             'notnull' => true,
             '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_CONCEP_NOMINA', array(
             'local' => 'id_concep_nomina',
             'foreign' => 'id_concep_nomina'));
    }
}