gabordemooij / redbean

ORM layer that creates models, config and database on the fly
https://www.redbeanphp.com
2.3k stars 279 forks source link

R::transaction(callable) starts a transaction in Fluid Mode #922

Closed Jemt closed 1 year ago

Jemt commented 1 year ago

R::begin() does not start a transaction in Fluid Mode.

R::transaction(callable) on the other hand does, often resulting in the "There is no active transaction" error, because the database automatically commit changes to the schema, causing the last commit after the callable to produce the error.

gabordemooij commented 1 year ago

Thanks for reporting this.