Results 1 to 3 of 3

Thread: Database transaction example

  1. #1
    User
    Join Date
    04-10-11.
    Posts
    162

    Default 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

  2. #2
    New user qzminski's Avatar
    Join Date
    01-08-13.
    Location
    Poland
    Posts
    24

    Default 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.
    Contao ambassador
    Codefog - Contao web development

  3. #3
    User
    Join Date
    04-10-11.
    Posts
    162

    Default Re: Database transaction example

    Thanks for info, i'll have a look around.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •