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

/**
 * BaseIN_DESAGREGACION_DEPRE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_desagregacion_depre
 * @property integer $id_vigencia
 * @property integer $id_meses
 * @property integer $id_inventario_dv
 * @property integer $num_dias
 * @property integer $valor_depreciadoh
 * @property  $fecha_desagrega
 * @property integer $id_usuario
 * @property IN_INVENTARIO_DV $IN_INVENTARIO_DV
 * 
 * @method integer                getIdDesagregacionDepre()   Returns the current record's "id_desagregacion_depre" value
 * @method integer                getIdVigencia()             Returns the current record's "id_vigencia" value
 * @method integer                getIdMeses()                Returns the current record's "id_meses" value
 * @method integer                getIdInventarioDv()         Returns the current record's "id_inventario_dv" value
 * @method integer                getNumDias()                Returns the current record's "num_dias" value
 * @method integer                getValorDepreciadoh()       Returns the current record's "valor_depreciadoh" value
 * @method integer                getIdUsuario()              Returns the current record's "id_usuario" value
 * @method IN_INVENTARIO_DV       getININVENTARIODV()         Returns the current record's "IN_INVENTARIO_DV" value
 * @method IN_DESAGREGACION_DEPRE setIdDesagregacionDepre()   Sets the current record's "id_desagregacion_depre" value
 * @method IN_DESAGREGACION_DEPRE setIdVigencia()             Sets the current record's "id_vigencia" value
 * @method IN_DESAGREGACION_DEPRE setIdMeses()                Sets the current record's "id_meses" value
 * @method IN_DESAGREGACION_DEPRE setIdInventarioDv()         Sets the current record's "id_inventario_dv" value
 * @method IN_DESAGREGACION_DEPRE setNumDias()                Sets the current record's "num_dias" value
 * @method IN_DESAGREGACION_DEPRE setValorDepreciadoh()       Sets the current record's "valor_depreciadoh" value
 * @method IN_DESAGREGACION_DEPRE setIdUsuario()              Sets the current record's "id_usuario" value
 * @method IN_DESAGREGACION_DEPRE setININVENTARIODV()         Sets the current record's "IN_INVENTARIO_DV" 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_DESAGREGACION_DEPRE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_DESAGREGACION_DEPRE');
        $this->hasColumn('id_desagregacion_depre', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_vigencia', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_meses', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_inventario_dv', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('num_dias', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_depreciadoh', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_desagrega', '', 11, array(
             'notnull' => false,
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'type' => '',
             'length' => '11',
             ));
        $this->hasColumn('id_usuario', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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