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

/**
 * BaseIN_DET_PROV_CALIF
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_det_prov_calif
 * @property integer $id_prov_calif
 * @property integer $id_crit_calif
 * @property integer $id_calificacion
 * @property decimal $valor_criterio
 * @property integer $valor_calificacion
 * @property decimal $valor_puntaje
 * @property decimal $valor_porcentaje
 * @property integer $estado
 * @property IN_CALIFICACION $IN_CALIFICACION
 * @property IN_CRIT_CALIF $IN_CRIT_CALIF
 * @property IN_PROV_CALIF $IN_PROV_CALIF
 * 
 * @method integer           getIdDetProvCalif()     Returns the current record's "id_det_prov_calif" value
 * @method integer           getIdProvCalif()        Returns the current record's "id_prov_calif" value
 * @method integer           getIdCritCalif()        Returns the current record's "id_crit_calif" value
 * @method integer           getIdCalificacion()     Returns the current record's "id_calificacion" value
 * @method decimal           getValorCriterio()      Returns the current record's "valor_criterio" value
 * @method integer           getValorCalificacion()  Returns the current record's "valor_calificacion" value
 * @method decimal           getValorPuntaje()       Returns the current record's "valor_puntaje" value
 * @method decimal           getValorPorcentaje()    Returns the current record's "valor_porcentaje" value
 * @method integer           getEstado()             Returns the current record's "estado" value
 * @method IN_CALIFICACION   getINCALIFICACION()     Returns the current record's "IN_CALIFICACION" value
 * @method IN_CRIT_CALIF     getINCRITCALIF()        Returns the current record's "IN_CRIT_CALIF" value
 * @method IN_PROV_CALIF     getINPROVCALIF()        Returns the current record's "IN_PROV_CALIF" value
 * @method IN_DET_PROV_CALIF setIdDetProvCalif()     Sets the current record's "id_det_prov_calif" value
 * @method IN_DET_PROV_CALIF setIdProvCalif()        Sets the current record's "id_prov_calif" value
 * @method IN_DET_PROV_CALIF setIdCritCalif()        Sets the current record's "id_crit_calif" value
 * @method IN_DET_PROV_CALIF setIdCalificacion()     Sets the current record's "id_calificacion" value
 * @method IN_DET_PROV_CALIF setValorCriterio()      Sets the current record's "valor_criterio" value
 * @method IN_DET_PROV_CALIF setValorCalificacion()  Sets the current record's "valor_calificacion" value
 * @method IN_DET_PROV_CALIF setValorPuntaje()       Sets the current record's "valor_puntaje" value
 * @method IN_DET_PROV_CALIF setValorPorcentaje()    Sets the current record's "valor_porcentaje" value
 * @method IN_DET_PROV_CALIF setEstado()             Sets the current record's "estado" value
 * @method IN_DET_PROV_CALIF setINCALIFICACION()     Sets the current record's "IN_CALIFICACION" value
 * @method IN_DET_PROV_CALIF setINCRITCALIF()        Sets the current record's "IN_CRIT_CALIF" value
 * @method IN_DET_PROV_CALIF setINPROVCALIF()        Sets the current record's "IN_PROV_CALIF" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_DET_PROV_CALIF extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_DET_PROV_CALIF');
        $this->hasColumn('id_det_prov_calif', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_prov_calif', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_crit_calif', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_calificacion', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_criterio', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_calificacion', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_puntaje', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_porcentaje', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('IN_CRIT_CALIF', array(
             'local' => 'id_crit_calif',
             'foreign' => 'id_crit_calif'));

        $this->hasOne('IN_PROV_CALIF', array(
             'local' => 'id_prov_calif',
             'foreign' => 'id_prov_calif'));
    }
}