I just noticed that when importing some data into a MySQL database using PHP and RedBean (and transactions), I could see how many rows grow during import. To confirm my suspicion, I changed R::commit()
to R::rollback()
at the end of the import function and tried to import. Indeed, the data was imported and permanent, although I called rollback.
I have no idea why the transaction is not doing this work, and I donβt know where to start looking, therefore this question. This is where part of the function is imported . Let me point out that besides a transaction that does not work , the import function works fine, so there is no need to open it.
Thanks for any hypotheses.
Hubro source share