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

/**
 * BaseIN_PROV_CALIF
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_prov_calif
 * @property integer $id_contrato
 * @property integer $id_vigencia
 * @property integer $id_cen_op
 * @property integer $id_mae_ter
 * @property timestamp $fecha_calif
 * @property string $observaciones
 * @property integer $estado
 * @property decimal $valor_total_puntaje
 * @property decimal $valor_total_porcentaje
 * @property IN_CONTRATO $IN_CONTRATO
 * @property IN_CONTRATO $IN_CONTRATO_2
 * @property IN_CONTRATO $IN_CONTRATO_3
 * @property IN_CONTRATO $IN_CONTRATO_4
 * @property IN_CONTRATO $IN_CONTRATO_5
 * @property IN_CONTRATO $IN_CONTRATO_6
 * @property IN_CONTRATO $IN_CONTRATO_7
 * @property IN_CONTRATO $IN_CONTRATO_8
 * @property IN_CONTRATO $IN_CONTRATO_9
 * @property INTERCEROS $INTERCEROS
 * @property Doctrine_Collection $IN_DET_PROV_CALIF
 * 
 * @method integer             getIdProvCalif()            Returns the current record's "id_prov_calif" value
 * @method integer             getIdContrato()             Returns the current record's "id_contrato" value
 * @method integer             getIdVigencia()             Returns the current record's "id_vigencia" value
 * @method integer             getIdCenOp()                Returns the current record's "id_cen_op" value
 * @method integer             getIdMaeTer()               Returns the current record's "id_mae_ter" value
 * @method timestamp           getFechaCalif()             Returns the current record's "fecha_calif" value
 * @method string              getObservaciones()          Returns the current record's "observaciones" value
 * @method integer             getEstado()                 Returns the current record's "estado" value
 * @method decimal             getValorTotalPuntaje()      Returns the current record's "valor_total_puntaje" value
 * @method decimal             getValorTotalPorcentaje()   Returns the current record's "valor_total_porcentaje" value
 * @method IN_CONTRATO         getINCONTRATO()             Returns the current record's "IN_CONTRATO" value
 * @method IN_CONTRATO         getINCONTRATO2()            Returns the current record's "IN_CONTRATO_2" value
 * @method IN_CONTRATO         getINCONTRATO3()            Returns the current record's "IN_CONTRATO_3" value
 * @method IN_CONTRATO         getINCONTRATO4()            Returns the current record's "IN_CONTRATO_4" value
 * @method IN_CONTRATO         getINCONTRATO5()            Returns the current record's "IN_CONTRATO_5" value
 * @method IN_CONTRATO         getINCONTRATO6()            Returns the current record's "IN_CONTRATO_6" value
 * @method IN_CONTRATO         getINCONTRATO7()            Returns the current record's "IN_CONTRATO_7" value
 * @method IN_CONTRATO         getINCONTRATO8()            Returns the current record's "IN_CONTRATO_8" value
 * @method IN_CONTRATO         getINCONTRATO9()            Returns the current record's "IN_CONTRATO_9" value
 * @method INTERCEROS          getINTERCEROS()             Returns the current record's "INTERCEROS" value
 * @method Doctrine_Collection getINDETPROVCALIF()         Returns the current record's "IN_DET_PROV_CALIF" collection
 * @method IN_PROV_CALIF       setIdProvCalif()            Sets the current record's "id_prov_calif" value
 * @method IN_PROV_CALIF       setIdContrato()             Sets the current record's "id_contrato" value
 * @method IN_PROV_CALIF       setIdVigencia()             Sets the current record's "id_vigencia" value
 * @method IN_PROV_CALIF       setIdCenOp()                Sets the current record's "id_cen_op" value
 * @method IN_PROV_CALIF       setIdMaeTer()               Sets the current record's "id_mae_ter" value
 * @method IN_PROV_CALIF       setFechaCalif()             Sets the current record's "fecha_calif" value
 * @method IN_PROV_CALIF       setObservaciones()          Sets the current record's "observaciones" value
 * @method IN_PROV_CALIF       setEstado()                 Sets the current record's "estado" value
 * @method IN_PROV_CALIF       setValorTotalPuntaje()      Sets the current record's "valor_total_puntaje" value
 * @method IN_PROV_CALIF       setValorTotalPorcentaje()   Sets the current record's "valor_total_porcentaje" value
 * @method IN_PROV_CALIF       setINCONTRATO()             Sets the current record's "IN_CONTRATO" value
 * @method IN_PROV_CALIF       setINCONTRATO2()            Sets the current record's "IN_CONTRATO_2" value
 * @method IN_PROV_CALIF       setINCONTRATO3()            Sets the current record's "IN_CONTRATO_3" value
 * @method IN_PROV_CALIF       setINCONTRATO4()            Sets the current record's "IN_CONTRATO_4" value
 * @method IN_PROV_CALIF       setINCONTRATO5()            Sets the current record's "IN_CONTRATO_5" value
 * @method IN_PROV_CALIF       setINCONTRATO6()            Sets the current record's "IN_CONTRATO_6" value
 * @method IN_PROV_CALIF       setINCONTRATO7()            Sets the current record's "IN_CONTRATO_7" value
 * @method IN_PROV_CALIF       setINCONTRATO8()            Sets the current record's "IN_CONTRATO_8" value
 * @method IN_PROV_CALIF       setINCONTRATO9()            Sets the current record's "IN_CONTRATO_9" value
 * @method IN_PROV_CALIF       setINTERCEROS()             Sets the current record's "INTERCEROS" value
 * @method IN_PROV_CALIF       setINDETPROVCALIF()         Sets the current record's "IN_DET_PROV_CALIF" 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 BaseIN_PROV_CALIF extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_PROV_CALIF');
        $this->hasColumn('id_prov_calif', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_contrato', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_vigencia', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_calif', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'default' => 'NULL',
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'default' => 'NULL',
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('valor_total_puntaje', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_total_porcentaje', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 18,
             ));
    }

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

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_2', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_contrato'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_3', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_contrato'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_4', array(
             'local' => 'id_contrato',
             'foreign' => 'id_vigencia'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_5', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_6', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_vigencia'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_7', array(
             'local' => 'id_contrato',
             'foreign' => 'id_cen_op'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_8', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cen_op'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_9', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

        $this->hasMany('IN_DET_PROV_CALIF', array(
             'local' => 'id_prov_calif',
             'foreign' => 'id_prov_calif'));
    }
}