• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Install Transaction

R

ragtek

Guest
#1
Doesn't this transaction include own queries from the install callback??
XenForo_Model_AddOn:
PHP:
    $db = $this->_getDb();
        XenForo_Db::beginTransaction($db);

        if ($addOnData['install_callback_class'] && $addOnData['install_callback_method'])
        {
            call_user_func(
                array($addOnData['install_callback_class'], $addOnData['install_callback_method']),
                $existingAddOn,
                $addOnData
            );
        }

        $addOnDw = XenForo_DataWriter::create('XenForo_DataWriter_AddOn');
i'm creating some tables in the callback class and even the install goes wrong, they are created.