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

/**
 * BaseIN_INVENTARIO_DV
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_inventario_dv
 * @property integer $id_cen_op
 * @property integer $id_espacio
 * @property integer $id_mae_ter
 * @property integer $id_tipo_almacenamiento
 * @property integer $codigo
 * @property timestamp $fecha_ingreso
 * @property integer $id_linea
 * @property integer $id_clase
 * @property integer $id_catalogo
 * @property string $descripcion
 * @property decimal $costo_inicial
 * @property decimal $costo_actual
 * @property integer $estado
 * @property integer $vida_util
 * @property integer $dias_depreciados
 * @property timestamp $fecha_mod
 * @property integer $en_proceso
 * @property integer $coordenada_x
 * @property integer $coordenada_y
 * @property integer $cantidad_inicial
 * @property integer $entradas
 * @property integer $salidas
 * @property integer $saldo
 * @property integer $promedio
 * @property INTERCEROS $INTERCEROS
 * @property IN_CATALOGO $IN_CATALOGO
 * @property IN_CATALOGO $IN_CATALOGO_3
 * @property IN_CATALOGO $IN_CATALOGO_4
 * @property IN_CATALOGO $IN_CATALOGO_5
 * @property IN_CATALOGO $IN_CATALOGO_6
 * @property IN_CATALOGO $IN_CATALOGO_7
 * @property IN_CATALOGO $IN_CATALOGO_8
 * @property IN_CATALOGO $IN_CATALOGO_9
 * @property IN_CATALOGO $IN_CATALOGO_10
 * @property IN_ESPACIO $IN_ESPACIO
 * @property IN_TIPO_ALMACENAMIENTO $IN_TIPO_ALMACENAMIENTO
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @property Doctrine_Collection $IN_SALDO_INVENTARIO_DV
 * @property Doctrine_Collection $IN_RECURSO_INVENTARIO
 * @property Doctrine_Collection $IN_PARTES_INVENTARIO
 * @property Doctrine_Collection $IN_DET_MOV_DV
 * @property Doctrine_Collection $IN_DETALLE_ASIGNACION
 * @property Doctrine_Collection $IN_DEPRECIACION
 * @property IN_CATALOGO $IN_CATALOGO_2
 * @property Doctrine_Collection $IN_GRUPO_RECURSO
 * @property IN_CATALOGO $IN_CATALOGO_11
 * @property IN_CATALOGO $IN_CATALOGO_12
 * 
 * @method integer                getIdInventarioDv()         Returns the current record's "id_inventario_dv" value
 * @method integer                getIdCenOp()                Returns the current record's "id_cen_op" value
 * @method integer                getIdEspacio()              Returns the current record's "id_espacio" value
 * @method integer                getIdMaeTer()               Returns the current record's "id_mae_ter" value
 * @method integer                getIdTipoAlmacenamiento()   Returns the current record's "id_tipo_almacenamiento" value
 * @method integer                getCodigo()                 Returns the current record's "codigo" value
 * @method timestamp              getFechaIngreso()           Returns the current record's "fecha_ingreso" value
 * @method integer                getIdLinea()                Returns the current record's "id_linea" value
 * @method integer                getIdClase()                Returns the current record's "id_clase" value
 * @method integer                getIdCatalogo()             Returns the current record's "id_catalogo" value
 * @method string                 getDescripcion()            Returns the current record's "descripcion" value
 * @method decimal                getCostoInicial()           Returns the current record's "costo_inicial" value
 * @method decimal                getCostoActual()            Returns the current record's "costo_actual" value
 * @method integer                getEstado()                 Returns the current record's "estado" value
 * @method integer                getVidaUtil()               Returns the current record's "vida_util" value
 * @method integer                getDiasDepreciados()        Returns the current record's "dias_depreciados" value
 * @method timestamp              getFechaMod()               Returns the current record's "fecha_mod" value
 * @method integer                getEnProceso()              Returns the current record's "en_proceso" value
 * @method integer                getCoordenadaX()            Returns the current record's "coordenada_x" value
 * @method integer                getCoordenadaY()            Returns the current record's "coordenada_y" value
 * @method integer                getCantidadInicial()        Returns the current record's "cantidad_inicial" value
 * @method integer                getEntradas()               Returns the current record's "entradas" value
 * @method integer                getSalidas()                Returns the current record's "salidas" value
 * @method integer                getSaldo()                  Returns the current record's "saldo" value
 * @method integer                getPromedio()               Returns the current record's "promedio" value
 * @method INTERCEROS             getINTERCEROS()             Returns the current record's "INTERCEROS" value
 * @method IN_CATALOGO            getINCATALOGO()             Returns the current record's "IN_CATALOGO" value
 * @method IN_CATALOGO            getINCATALOGO3()            Returns the current record's "IN_CATALOGO_3" value
 * @method IN_CATALOGO            getINCATALOGO4()            Returns the current record's "IN_CATALOGO_4" value
 * @method IN_CATALOGO            getINCATALOGO5()            Returns the current record's "IN_CATALOGO_5" value
 * @method IN_CATALOGO            getINCATALOGO6()            Returns the current record's "IN_CATALOGO_6" value
 * @method IN_CATALOGO            getINCATALOGO7()            Returns the current record's "IN_CATALOGO_7" value
 * @method IN_CATALOGO            getINCATALOGO8()            Returns the current record's "IN_CATALOGO_8" value
 * @method IN_CATALOGO            getINCATALOGO9()            Returns the current record's "IN_CATALOGO_9" value
 * @method IN_CATALOGO            getINCATALOGO10()           Returns the current record's "IN_CATALOGO_10" value
 * @method IN_ESPACIO             getINESPACIO()              Returns the current record's "IN_ESPACIO" value
 * @method IN_TIPO_ALMACENAMIENTO getINTIPOALMACENAMIENTO()   Returns the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method CENTRO_OPERACION       getCENTROOPERACION()        Returns the current record's "CENTRO_OPERACION" value
 * @method Doctrine_Collection    getINSALDOINVENTARIODV()    Returns the current record's "IN_SALDO_INVENTARIO_DV" collection
 * @method Doctrine_Collection    getINRECURSOINVENTARIO()    Returns the current record's "IN_RECURSO_INVENTARIO" collection
 * @method Doctrine_Collection    getINPARTESINVENTARIO()     Returns the current record's "IN_PARTES_INVENTARIO" collection
 * @method Doctrine_Collection    getINDETMOVDV()             Returns the current record's "IN_DET_MOV_DV" collection
 * @method Doctrine_Collection    getINDETALLEASIGNACION()    Returns the current record's "IN_DETALLE_ASIGNACION" collection
 * @method Doctrine_Collection    getINDEPRECIACION()         Returns the current record's "IN_DEPRECIACION" collection
 * @method IN_CATALOGO            getINCATALOGO2()            Returns the current record's "IN_CATALOGO_2" value
 * @method Doctrine_Collection    getINGRUPORECURSO()         Returns the current record's "IN_GRUPO_RECURSO" collection
 * @method IN_CATALOGO            getINCATALOGO11()           Returns the current record's "IN_CATALOGO_11" value
 * @method IN_CATALOGO            getINCATALOGO12()           Returns the current record's "IN_CATALOGO_12" value
 * @method IN_INVENTARIO_DV       setIdInventarioDv()         Sets the current record's "id_inventario_dv" value
 * @method IN_INVENTARIO_DV       setIdCenOp()                Sets the current record's "id_cen_op" value
 * @method IN_INVENTARIO_DV       setIdEspacio()              Sets the current record's "id_espacio" value
 * @method IN_INVENTARIO_DV       setIdMaeTer()               Sets the current record's "id_mae_ter" value
 * @method IN_INVENTARIO_DV       setIdTipoAlmacenamiento()   Sets the current record's "id_tipo_almacenamiento" value
 * @method IN_INVENTARIO_DV       setCodigo()                 Sets the current record's "codigo" value
 * @method IN_INVENTARIO_DV       setFechaIngreso()           Sets the current record's "fecha_ingreso" value
 * @method IN_INVENTARIO_DV       setIdLinea()                Sets the current record's "id_linea" value
 * @method IN_INVENTARIO_DV       setIdClase()                Sets the current record's "id_clase" value
 * @method IN_INVENTARIO_DV       setIdCatalogo()             Sets the current record's "id_catalogo" value
 * @method IN_INVENTARIO_DV       setDescripcion()            Sets the current record's "descripcion" value
 * @method IN_INVENTARIO_DV       setCostoInicial()           Sets the current record's "costo_inicial" value
 * @method IN_INVENTARIO_DV       setCostoActual()            Sets the current record's "costo_actual" value
 * @method IN_INVENTARIO_DV       setEstado()                 Sets the current record's "estado" value
 * @method IN_INVENTARIO_DV       setVidaUtil()               Sets the current record's "vida_util" value
 * @method IN_INVENTARIO_DV       setDiasDepreciados()        Sets the current record's "dias_depreciados" value
 * @method IN_INVENTARIO_DV       setFechaMod()               Sets the current record's "fecha_mod" value
 * @method IN_INVENTARIO_DV       setEnProceso()              Sets the current record's "en_proceso" value
 * @method IN_INVENTARIO_DV       setCoordenadaX()            Sets the current record's "coordenada_x" value
 * @method IN_INVENTARIO_DV       setCoordenadaY()            Sets the current record's "coordenada_y" value
 * @method IN_INVENTARIO_DV       setCantidadInicial()        Sets the current record's "cantidad_inicial" value
 * @method IN_INVENTARIO_DV       setEntradas()               Sets the current record's "entradas" value
 * @method IN_INVENTARIO_DV       setSalidas()                Sets the current record's "salidas" value
 * @method IN_INVENTARIO_DV       setSaldo()                  Sets the current record's "saldo" value
 * @method IN_INVENTARIO_DV       setPromedio()               Sets the current record's "promedio" value
 * @method IN_INVENTARIO_DV       setINTERCEROS()             Sets the current record's "INTERCEROS" value
 * @method IN_INVENTARIO_DV       setINCATALOGO()             Sets the current record's "IN_CATALOGO" value
 * @method IN_INVENTARIO_DV       setINCATALOGO3()            Sets the current record's "IN_CATALOGO_3" value
 * @method IN_INVENTARIO_DV       setINCATALOGO4()            Sets the current record's "IN_CATALOGO_4" value
 * @method IN_INVENTARIO_DV       setINCATALOGO5()            Sets the current record's "IN_CATALOGO_5" value
 * @method IN_INVENTARIO_DV       setINCATALOGO6()            Sets the current record's "IN_CATALOGO_6" value
 * @method IN_INVENTARIO_DV       setINCATALOGO7()            Sets the current record's "IN_CATALOGO_7" value
 * @method IN_INVENTARIO_DV       setINCATALOGO8()            Sets the current record's "IN_CATALOGO_8" value
 * @method IN_INVENTARIO_DV       setINCATALOGO9()            Sets the current record's "IN_CATALOGO_9" value
 * @method IN_INVENTARIO_DV       setINCATALOGO10()           Sets the current record's "IN_CATALOGO_10" value
 * @method IN_INVENTARIO_DV       setINESPACIO()              Sets the current record's "IN_ESPACIO" value
 * @method IN_INVENTARIO_DV       setINTIPOALMACENAMIENTO()   Sets the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method IN_INVENTARIO_DV       setCENTROOPERACION()        Sets the current record's "CENTRO_OPERACION" value
 * @method IN_INVENTARIO_DV       setINSALDOINVENTARIODV()    Sets the current record's "IN_SALDO_INVENTARIO_DV" collection
 * @method IN_INVENTARIO_DV       setINRECURSOINVENTARIO()    Sets the current record's "IN_RECURSO_INVENTARIO" collection
 * @method IN_INVENTARIO_DV       setINPARTESINVENTARIO()     Sets the current record's "IN_PARTES_INVENTARIO" collection
 * @method IN_INVENTARIO_DV       setINDETMOVDV()             Sets the current record's "IN_DET_MOV_DV" collection
 * @method IN_INVENTARIO_DV       setINDETALLEASIGNACION()    Sets the current record's "IN_DETALLE_ASIGNACION" collection
 * @method IN_INVENTARIO_DV       setINDEPRECIACION()         Sets the current record's "IN_DEPRECIACION" collection
 * @method IN_INVENTARIO_DV       setINCATALOGO2()            Sets the current record's "IN_CATALOGO_2" value
 * @method IN_INVENTARIO_DV       setINGRUPORECURSO()         Sets the current record's "IN_GRUPO_RECURSO" collection
 * @method IN_INVENTARIO_DV       setINCATALOGO11()           Sets the current record's "IN_CATALOGO_11" value
 * @method IN_INVENTARIO_DV       setINCATALOGO12()           Sets the current record's "IN_CATALOGO_12" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_INVENTARIO_DV extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_INVENTARIO_DV');
        $this->hasColumn('id_inventario_dv', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_espacio', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_almacenamiento', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('codigo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_ingreso', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_linea', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_clase', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_catalogo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 250, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('costo_inicial', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('costo_actual', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('vida_util', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('dias_depreciados', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_mod', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('en_proceso', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('coordenada_x', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('coordenada_y', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cantidad_inicial', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('entradas', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('salidas', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('saldo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('promedio', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('IN_CATALOGO', array(
             'local' => 'id_linea',
             'foreign' => 'id_catalogo'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_3', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_catalogo'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_4', array(
             'local' => 'id_linea',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_5', array(
             'local' => 'id_clase',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_6', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_7', array(
             'local' => 'id_linea',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_8', array(
             'local' => 'id_clase',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_9', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_10', array(
             'local' => 'id_linea',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_ESPACIO', array(
             'local' => 'id_espacio',
             'foreign' => 'id_espacio'));

        $this->hasOne('IN_TIPO_ALMACENAMIENTO', array(
             'local' => 'id_tipo_almacenamiento',
             'foreign' => 'id_tipo_almacenamiento'));

        $this->hasOne('CENTRO_OPERACION', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_SALDO_INVENTARIO_DV', array(
             'local' => 'id_inventario_dv',
             'foreign' => 'id_inventario_dv'));

        $this->hasMany('IN_RECURSO_INVENTARIO', array(
             'local' => 'id_inventario_dv',
             'foreign' => 'id_inventario_dv'));

        $this->hasMany('IN_PARTES_INVENTARIO', array(
             'local' => 'id_inventario_dv',
             'foreign' => 'id_inventario_dv'));

        $this->hasMany('IN_DET_MOV_DV', array(
             'local' => 'id_inventario_dv',
             'foreign' => 'id_inventario_dv'));

        $this->hasMany('IN_DETALLE_ASIGNACION', array(
             'local' => 'id_inventario_dv',
             'foreign' => 'id_inventario_dv'));

        $this->hasMany('IN_DEPRECIACION', array(
             'local' => 'id_inventario_dv',
             'foreign' => 'id_inventario_dv'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_2', array(
             'local' => 'id_clase',
             'foreign' => 'id_catalogo'));

        $this->hasMany('IN_GRUPO_RECURSO', array(
             'local' => 'id_inventario_dv',
             'foreign' => 'id_inventario_dv'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_11', array(
             'local' => 'id_clase',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_12', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_linea'));
    }
}