Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Difference in load() between v1.5 and higher. 
 
Archonkulis
Jr. Member
 
Total Posts:  4
Joined:  2012-10-14
 

Hello all.

I have custom module with custom database table. In Magento v.1.6 and 1.7 everything works great, but when I tried my extension on version 1.5, this is where it got interesting:
It crashed in this line:

$dbEntry Mage::getModel('module_alias/lalala')->load($some_variable'table_name');
I tried deleting load() from this variable and it didn’t crash. So my question is what is the difference between load() function in v1.5 and higher and what is the best alternative to get this to work.

Thank you in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
markoshust
Sr. Member
 
Avatar
Total Posts:  129
Joined:  2007-09-05
Cleveland, OH
 

I don’t have a copy of 1.5 laying around, but the load function is in app/code/core/Mage/Core/Model/Abstract.php

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top