<?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 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_TEMPO
 * @property Doctrine_Collection $IN_PARTES_INVENTARIO
 * @property Doctrine_Collection $IN_INVENTARIO_DV_TEMPO
 * @property Doctrine_Collection $IN_INVENTARIO_COOR
 * @property Doctrine_Collection $IN_DET_MOV_DV
 * @property Doctrine_Collection $IN_DETALLE_ASIGNACION_TEMPO
 * @property Doctrine_Collection $IN_DETALLE_ASIGNACION
 * @property Doctrine_Collection $IN_DESAGREGACION_INV
 * @property Doctrine_Collection $IN_DESAGREGACION_INV_3
 * @property Doctrine_Collection $IN_DESAGREGACION_DEPRE
 * @property Doctrine_Collection $IN_DEPRECIACION
 * 
 * @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 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    getINPARTESINVENTARIOTEMPO()     Returns the current record's "IN_PARTES_INVENTARIO_TEMPO" collection
 * @method Doctrine_Collection    getINPARTESINVENTARIO()          Returns the current record's "IN_PARTES_INVENTARIO" collection
 * @method Doctrine_Collection    getININVENTARIODVTEMPO()         Returns the current record's "IN_INVENTARIO_DV_TEMPO" collection
 * @method Doctrine_Collection    getININVENTARIOCOOR()            Returns the current record's "IN_INVENTARIO_COOR" collection
 * @method Doctrine_Collection    getINDETMOVDV()                  Returns the current record's "IN_DET_MOV_DV" collection
 * @method Doctrine_Collection    getINDETALLEASIGNACIONTEMPO()    Returns the current record's "IN_DETALLE_ASIGNACION_TEMPO" collection
 * @method Doctrine_Collection    getINDETALLEASIGNACION()         Returns the current record's "IN_DETALLE_ASIGNACION" collection
 * @method Doctrine_Collection    getINDESAGREGACIONINV()          Returns the current record's "IN_DESAGREGACION_INV" collection
 * @method Doctrine_Collection    getINDESAGREGACIONINV3()         Returns the current record's "IN_DESAGREGACION_INV_3" collection
 * @method Doctrine_Collection    getINDESAGREGACIONDEPRE()        Returns the current record's "IN_DESAGREGACION_DEPRE" collection
 * @method Doctrine_Collection    getINDEPRECIACION()              Returns the current record's "IN_DEPRECIACION" collection
 * @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       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       setINPARTESINVENTARIOTEMPO()     Sets the current record's "IN_PARTES_INVENTARIO_TEMPO" collection
 * @method IN_INVENTARIO_DV       setINPARTESINVENTARIO()          Sets the current record's "IN_PARTES_INVENTARIO" collection
 * @method IN_INVENTARIO_DV       setININVENTARIODVTEMPO()         Sets the current record's "IN_INVENTARIO_DV_TEMPO" collection
 * @method IN_INVENTARIO_DV       setININVENTARIOCOOR()            Sets the current record's "IN_INVENTARIO_COOR" collection
 * @method IN_INVENTARIO_DV       setINDETMOVDV()                  Sets the current record's "IN_DET_MOV_DV" collection
 * @method IN_INVENTARIO_DV       setINDETALLEASIGNACIONTEMPO()    Sets the current record's "IN_DETALLE_ASIGNACION_TEMPO" collection
 * @method IN_INVENTARIO_DV       setINDETALLEASIGNACION()         Sets the current record's "IN_DETALLE_ASIGNACION" collection
 * @method IN_INVENTARIO_DV       setINDESAGREGACIONINV()          Sets the current record's "IN_DESAGREGACION_INV" collection
 * @method IN_INVENTARIO_DV       setINDESAGREGACIONINV3()         Sets the current record's "IN_DESAGREGACION_INV_3" collection
 * @method IN_INVENTARIO_DV       setINDESAGREGACIONDEPRE()        Sets the current record's "IN_DESAGREGACION_DEPRE" collection
 * @method IN_INVENTARIO_DV       setINDEPRECIACION()              Sets the current record's "IN_DEPRECIACION" 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_INVENTARIO_DV extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_INVENTARIO_DV');
        $this->hasColumn('id_inventario_dv', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_espacio', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_almacenamiento', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('codigo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_ingreso', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_linea', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_clase', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_catalogo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 252, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 252,
             ));
        $this->hasColumn('costo_inicial', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('costo_actual', 'decimal', 18, array(
             'notnull' => false,
             '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' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('vida_util', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('dias_depreciados', 'integer', 8, array(
             'notnull' => false,
             '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' => false,
             '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,
             ));
    }

    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_clase',
             'foreign' => 'id_catalogo'));

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

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

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

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

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

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

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_10', array(
             'local' => 'id_catalogo',
             '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_TEMPO', 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_INVENTARIO_DV_TEMPO', array(
             'local' => 'id_inventario_dv',
             'foreign' => 'id_inventario_dv'));

        $this->hasMany('IN_INVENTARIO_COOR', 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_TEMPO', 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_DESAGREGACION_INV', array(
             'local' => 'id_inventario_dv',
             'foreign' => 'id_inventario_dv_padre'));

        $this->hasMany('IN_DESAGREGACION_INV as IN_DESAGREGACION_INV_3', array(
             'local' => 'id_inventario_dv',
             'foreign' => 'id_inventario_dv_hijo'));

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

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