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

/**
 * BaseIN_DEPRECIACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_depreciacion
 * @property integer $id_inventario_dv
 * @property integer $id_meses
 * @property integer $id_vigencia
 * @property integer $num_dias
 * @property decimal $valor_depreciado
 * @property timestamp $fecha_calculo
 * @property integer $acumulada
 * @property IN_INVENTARIO_DV $IN_INVENTARIO_DV
 * @property MESES $MESES
 * 
 * @method integer          getIdDepreciacion()   Returns the current record's "id_depreciacion" value
 * @method integer          getIdInventarioDv()   Returns the current record's "id_inventario_dv" value
 * @method integer          getIdMeses()          Returns the current record's "id_meses" value
 * @method integer          getIdVigencia()       Returns the current record's "id_vigencia" value
 * @method integer          getNumDias()          Returns the current record's "num_dias" value
 * @method decimal          getValorDepreciado()  Returns the current record's "valor_depreciado" value
 * @method timestamp        getFechaCalculo()     Returns the current record's "fecha_calculo" value
 * @method integer          getAcumulada()        Returns the current record's "acumulada" value
 * @method IN_INVENTARIO_DV getININVENTARIODV()   Returns the current record's "IN_INVENTARIO_DV" value
 * @method MESES            getMESES()            Returns the current record's "MESES" value
 * @method IN_DEPRECIACION  setIdDepreciacion()   Sets the current record's "id_depreciacion" value
 * @method IN_DEPRECIACION  setIdInventarioDv()   Sets the current record's "id_inventario_dv" value
 * @method IN_DEPRECIACION  setIdMeses()          Sets the current record's "id_meses" value
 * @method IN_DEPRECIACION  setIdVigencia()       Sets the current record's "id_vigencia" value
 * @method IN_DEPRECIACION  setNumDias()          Sets the current record's "num_dias" value
 * @method IN_DEPRECIACION  setValorDepreciado()  Sets the current record's "valor_depreciado" value
 * @method IN_DEPRECIACION  setFechaCalculo()     Sets the current record's "fecha_calculo" value
 * @method IN_DEPRECIACION  setAcumulada()        Sets the current record's "acumulada" value
 * @method IN_DEPRECIACION  setININVENTARIODV()   Sets the current record's "IN_INVENTARIO_DV" value
 * @method IN_DEPRECIACION  setMESES()            Sets the current record's "MESES" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_DEPRECIACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_DEPRECIACION');
        $this->hasColumn('id_depreciacion', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_inventario_dv', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_meses', '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('num_dias', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_depreciado', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('fecha_calculo', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('acumulada', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('MESES', array(
             'local' => 'id_meses',
             'foreign' => 'id_meses'));
    }
}