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

/**
 * BaseIN_DET_MOV_CON
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_det_mov_con
 * @property integer $id_movimientos_con
 * @property integer $id_vigencia
 * @property integer $id_inventario_con
 * @property decimal $valor_unitario
 * @property integer $anulado
 * @property integer $estado
 * @property integer $id_catalogo
 * @property integer $id_clase
 * @property integer $id_linea
 * @property integer $id_cen_op
 * @property integer $cantidad
 * @property integer $id_tipo_movimiento
 * @property integer $saldo
 * @property decimal $valor_promedio
 * @property decimal $valor_promedio_ant
 * @property integer $id_inventario_con_fin
 * @property integer $saldo_fin
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @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_INVENTARIO_CON $IN_INVENTARIO_CON
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_13
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_14
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_15
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_16
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_17
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_18
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_19
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_20
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_21
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_22
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_23
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_24
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_25
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_26
 * @property IN_MOVIMIENTOS_CON $IN_MOVIMIENTOS_CON_27
 * 
 * @method integer            getIdDetMovCon()           Returns the current record's "id_det_mov_con" value
 * @method integer            getIdMovimientosCon()      Returns the current record's "id_movimientos_con" value
 * @method integer            getIdVigencia()            Returns the current record's "id_vigencia" value
 * @method integer            getIdInventarioCon()       Returns the current record's "id_inventario_con" value
 * @method decimal            getValorUnitario()         Returns the current record's "valor_unitario" value
 * @method integer            getAnulado()               Returns the current record's "anulado" value
 * @method integer            getEstado()                Returns the current record's "estado" value
 * @method integer            getIdCatalogo()            Returns the current record's "id_catalogo" value
 * @method integer            getIdClase()               Returns the current record's "id_clase" value
 * @method integer            getIdLinea()               Returns the current record's "id_linea" value
 * @method integer            getIdCenOp()               Returns the current record's "id_cen_op" value
 * @method integer            getCantidad()              Returns the current record's "cantidad" value
 * @method integer            getIdTipoMovimiento()      Returns the current record's "id_tipo_movimiento" value
 * @method integer            getSaldo()                 Returns the current record's "saldo" value
 * @method decimal            getValorPromedio()         Returns the current record's "valor_promedio" value
 * @method decimal            getValorPromedioAnt()      Returns the current record's "valor_promedio_ant" value
 * @method integer            getIdInventarioConFin()    Returns the current record's "id_inventario_con_fin" value
 * @method integer            getSaldoFin()              Returns the current record's "saldo_fin" value
 * @method CENTRO_OPERACION   getCENTROOPERACION()       Returns the current record's "CENTRO_OPERACION" 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_INVENTARIO_CON  getININVENTARIOCON()       Returns the current record's "IN_INVENTARIO_CON" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON()      Returns the current record's "IN_MOVIMIENTOS_CON" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON13()    Returns the current record's "IN_MOVIMIENTOS_CON_13" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON14()    Returns the current record's "IN_MOVIMIENTOS_CON_14" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON15()    Returns the current record's "IN_MOVIMIENTOS_CON_15" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON16()    Returns the current record's "IN_MOVIMIENTOS_CON_16" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON17()    Returns the current record's "IN_MOVIMIENTOS_CON_17" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON18()    Returns the current record's "IN_MOVIMIENTOS_CON_18" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON19()    Returns the current record's "IN_MOVIMIENTOS_CON_19" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON20()    Returns the current record's "IN_MOVIMIENTOS_CON_20" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON21()    Returns the current record's "IN_MOVIMIENTOS_CON_21" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON22()    Returns the current record's "IN_MOVIMIENTOS_CON_22" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON23()    Returns the current record's "IN_MOVIMIENTOS_CON_23" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON24()    Returns the current record's "IN_MOVIMIENTOS_CON_24" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON25()    Returns the current record's "IN_MOVIMIENTOS_CON_25" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON26()    Returns the current record's "IN_MOVIMIENTOS_CON_26" value
 * @method IN_MOVIMIENTOS_CON getINMOVIMIENTOSCON27()    Returns the current record's "IN_MOVIMIENTOS_CON_27" value
 * @method IN_DET_MOV_CON     setIdDetMovCon()           Sets the current record's "id_det_mov_con" value
 * @method IN_DET_MOV_CON     setIdMovimientosCon()      Sets the current record's "id_movimientos_con" value
 * @method IN_DET_MOV_CON     setIdVigencia()            Sets the current record's "id_vigencia" value
 * @method IN_DET_MOV_CON     setIdInventarioCon()       Sets the current record's "id_inventario_con" value
 * @method IN_DET_MOV_CON     setValorUnitario()         Sets the current record's "valor_unitario" value
 * @method IN_DET_MOV_CON     setAnulado()               Sets the current record's "anulado" value
 * @method IN_DET_MOV_CON     setEstado()                Sets the current record's "estado" value
 * @method IN_DET_MOV_CON     setIdCatalogo()            Sets the current record's "id_catalogo" value
 * @method IN_DET_MOV_CON     setIdClase()               Sets the current record's "id_clase" value
 * @method IN_DET_MOV_CON     setIdLinea()               Sets the current record's "id_linea" value
 * @method IN_DET_MOV_CON     setIdCenOp()               Sets the current record's "id_cen_op" value
 * @method IN_DET_MOV_CON     setCantidad()              Sets the current record's "cantidad" value
 * @method IN_DET_MOV_CON     setIdTipoMovimiento()      Sets the current record's "id_tipo_movimiento" value
 * @method IN_DET_MOV_CON     setSaldo()                 Sets the current record's "saldo" value
 * @method IN_DET_MOV_CON     setValorPromedio()         Sets the current record's "valor_promedio" value
 * @method IN_DET_MOV_CON     setValorPromedioAnt()      Sets the current record's "valor_promedio_ant" value
 * @method IN_DET_MOV_CON     setIdInventarioConFin()    Sets the current record's "id_inventario_con_fin" value
 * @method IN_DET_MOV_CON     setSaldoFin()              Sets the current record's "saldo_fin" value
 * @method IN_DET_MOV_CON     setCENTROOPERACION()       Sets the current record's "CENTRO_OPERACION" value
 * @method IN_DET_MOV_CON     setINCATALOGO()            Sets the current record's "IN_CATALOGO" value
 * @method IN_DET_MOV_CON     setINCATALOGO3()           Sets the current record's "IN_CATALOGO_3" value
 * @method IN_DET_MOV_CON     setINCATALOGO4()           Sets the current record's "IN_CATALOGO_4" value
 * @method IN_DET_MOV_CON     setINCATALOGO5()           Sets the current record's "IN_CATALOGO_5" value
 * @method IN_DET_MOV_CON     setINCATALOGO6()           Sets the current record's "IN_CATALOGO_6" value
 * @method IN_DET_MOV_CON     setINCATALOGO7()           Sets the current record's "IN_CATALOGO_7" value
 * @method IN_DET_MOV_CON     setINCATALOGO8()           Sets the current record's "IN_CATALOGO_8" value
 * @method IN_DET_MOV_CON     setINCATALOGO9()           Sets the current record's "IN_CATALOGO_9" value
 * @method IN_DET_MOV_CON     setINCATALOGO10()          Sets the current record's "IN_CATALOGO_10" value
 * @method IN_DET_MOV_CON     setININVENTARIOCON()       Sets the current record's "IN_INVENTARIO_CON" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON()      Sets the current record's "IN_MOVIMIENTOS_CON" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON13()    Sets the current record's "IN_MOVIMIENTOS_CON_13" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON14()    Sets the current record's "IN_MOVIMIENTOS_CON_14" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON15()    Sets the current record's "IN_MOVIMIENTOS_CON_15" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON16()    Sets the current record's "IN_MOVIMIENTOS_CON_16" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON17()    Sets the current record's "IN_MOVIMIENTOS_CON_17" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON18()    Sets the current record's "IN_MOVIMIENTOS_CON_18" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON19()    Sets the current record's "IN_MOVIMIENTOS_CON_19" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON20()    Sets the current record's "IN_MOVIMIENTOS_CON_20" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON21()    Sets the current record's "IN_MOVIMIENTOS_CON_21" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON22()    Sets the current record's "IN_MOVIMIENTOS_CON_22" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON23()    Sets the current record's "IN_MOVIMIENTOS_CON_23" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON24()    Sets the current record's "IN_MOVIMIENTOS_CON_24" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON25()    Sets the current record's "IN_MOVIMIENTOS_CON_25" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON26()    Sets the current record's "IN_MOVIMIENTOS_CON_26" value
 * @method IN_DET_MOV_CON     setINMOVIMIENTOSCON27()    Sets the current record's "IN_MOVIMIENTOS_CON_27" 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_DET_MOV_CON extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_DET_MOV_CON');
        $this->hasColumn('id_det_mov_con', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_movimientos_con', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_vigencia', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_inventario_con', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_unitario', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('anulado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_catalogo', '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_linea', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('cantidad', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_movimiento', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('saldo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_promedio', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_promedio_ant', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('id_inventario_con_fin', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('saldo_fin', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('IN_CATALOGO', array(
             'local' => 'id_catalogo',
             '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_linea',
             'foreign' => 'id_catalogo'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_5', array(
             'local' => 'id_catalogo',
             '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_linea',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_8', array(
             'local' => 'id_catalogo',
             '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_linea',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_INVENTARIO_CON', array(
             'local' => 'id_inventario_con',
             'foreign' => 'id_inventario_con'));

        $this->hasOne('IN_MOVIMIENTOS_CON', array(
             'local' => 'id_movimientos_con',
             'foreign' => 'id_movimientos_con'));

        $this->hasOne('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_13', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_movimientos_con'));

        $this->hasOne('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_14', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_movimientos_con'));

        $this->hasOne('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_15', array(
             'local' => 'id_tipo_movimiento',
             'foreign' => 'id_movimientos_con'));

        $this->hasOne('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_16', array(
             'local' => 'id_movimientos_con',
             'foreign' => 'id_vigencia'));

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

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

        $this->hasOne('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_19', array(
             'local' => 'id_tipo_movimiento',
             'foreign' => 'id_vigencia'));

        $this->hasOne('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_20', array(
             'local' => 'id_movimientos_con',
             'foreign' => 'id_cen_op'));

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

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

        $this->hasOne('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_23', array(
             'local' => 'id_tipo_movimiento',
             'foreign' => 'id_cen_op'));

        $this->hasOne('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_24', array(
             'local' => 'id_movimientos_con',
             'foreign' => 'id_tipo_movimiento'));

        $this->hasOne('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_25', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_tipo_movimiento'));

        $this->hasOne('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_26', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_tipo_movimiento'));

        $this->hasOne('IN_MOVIMIENTOS_CON as IN_MOVIMIENTOS_CON_27', array(
             'local' => 'id_tipo_movimiento',
             'foreign' => 'id_tipo_movimiento'));
    }
}