Welcome Guest, Not a member yet? Register   Sign In
operator does not exist on updateBtach
#4

A simple test. First obtain an associative array from findAll(). Then do an updateBatch with that array will trigger the error.
Code:
        $estruturas_model = new EstruturasModel();
        $data4 = $estruturas_model->where('id_mestre', 6034)->findAll();

        $db = \Config\Database::connect();
        $builder = $db->table('cd_estruturas');
        $builder->onConstraint('id_mestre, item')->updateBatch($data4);
But if I create the same array on code, the error does not happen. Dodgy
Reply


Messages In This Thread
RE: operator does not exist on updateBtach - by rdconsolo - 08-19-2023, 05:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB