Welcome Guest, Not a member yet? Register   Sign In
insertID bad return
#7

(02-07-2023, 05:16 AM)keto Wrote:
(02-07-2023, 04:19 AM)kenjis Wrote: If the insert id is wrong, there might be another insert before you call insertID().
That's it ! THANKS ! I had completely forgotten that I log each modification in BBD by an insert in a table 'log_bdd' via an event 'Events::on('DBQuery', function($query) {‘. 

The IDs correspond.

Now I have to figure out how to make the log not overwrite the ID in the object or keep the ID to rewrite it after the log.

I was wondering if you managed to find a solution to this as I'm experience the same issue due to a DBQuery event I have created which inserts a record.
Reply


Messages In This Thread
insertID bad return - by keto - 02-06-2023, 06:47 AM
RE: insertID bad return - by kenjis - 02-07-2023, 03:33 AM
RE: insertID bad return - by keto - 02-07-2023, 03:45 AM
RE: insertID bad return - by kenjis - 02-07-2023, 04:19 AM
RE: insertID bad return - by keto - 02-07-2023, 05:16 AM
RE: insertID bad return - by davidb2002 - 07-09-2024, 04:14 AM
RE: insertID bad return - by ozornick - 02-07-2023, 05:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB