Database transaction example
Does anyone know where I can find an example of a database transaction using Contao's transaction methods?
I'm looking at the API docs:
Database::beginTransaction();
http://api.contao.org/v2/#beginTransaction
Database::commitTransaction();
http://api.contao.org/v2/#commitTransaction
Do these just get called before and after a set of queries? If someone knows where this is used either within the Contao core or a module that would be helpful.
Thanks
Re: Database transaction example
The transactions are not called anywhere in the Contao core. There are some tutorials over the net with examples how to use them. Be aware that the default Contao engine is MyISAM and it does not support transactions.
Re: Database transaction example
Thanks for info, i'll have a look around.