Questions tagged [resource-model]

Questions specific to Magento Resource Model Classes. These classes are the middle point between the Database and Models.

A "resource model" is a class that, behind the scenes, does the actual fetching of data from Magento. Every model has a resource model that is used to load a single instance of a model from the database.

208 questions
1
vote
2 answers

What is a resource in simple terms?

I know how to use a resource, but I'm not sure what it is. All I understand is that I put in in my XML file and it makes my application work. Can someone explain in simple terms what it is I'm doing when I put it in my XML file?
Kyle
  • 13
  • 3
1
vote
1 answer

I just can't tell what is wrong with this Model code that save() is raising an exception.||

http://www.magentocommerce.com/boards/viewthread/760042/ My model object when passed to get_class appears to be ok. 2013-12-09T11:04:27-05:00 DEBUG (7): get_class() Checkerboard_Workorder_Model_Workorderlineitem The Object itself looks good…
0
votes
3 answers

getResourceModel can't find local collection

$collection = Mage::getResourceModel('customreports/report_collection'); where customreports is my module name and I have a Collection.php file within Model/Resource/Report folder. getResourceModel is returning false or NULL or whatever. I…
user2045
  • 831
  • 3
  • 16
  • 29