R
ragtek
Guest
Doesn't this transaction include own queries from the install callback??
XenForo_Model_AddOn:
i'm creating some tables in the callback class and even the install goes wrong, they are created.
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.