Hi Kenjis,
I'll try to explain my problem a bit more:
On CI3, when I do an insert and then use insert_id(), it returns me the id of the primary key in auto increment . In my example, looking at the DB, it should have returned 541.
But when I try to migrate to CI4, and use the insertID() function after an insert, the returned value doesn't match at all. It gave me a much higher value.
I hope to be clearer with this explanation and that the Google translation does not break my sentences.