This does not work because your code defines
Turnkeye_Adminform_Model_Mysql4_Iaso extends Mage_Core_Model_Abstract
which is wrong.
You need to extend the resource model that belongs to the class that extends the abstract class Mage_Core_Model_Resource_Abstract
. This is where beginTransaction()
defined.
This is usually done by extending from Mage_Core_Model_Mysql4_Abstract
, because there are several methods that use the standard mySQL resources in Magento, and they are defined through:
Mage_Core_Model_Mysql4_Abstract extends Mage_Core_Model_Resource_Db_Abstract extends Mage_Core_Model_Resource_Abstract
So, changing the definition to
Turnkeye_Adminform_Model_Mysql4_Iaso extends Mage_Core_Model_Mysql4_Abstract
should get you back on track.
source share