Wednesday, August 17, 2016

Magento: Load record of my model by custom Field

Magento: Load record of my model by custom Field


$model = Mage::getModel('foo_bar/baz');
$model->load($id, 'field_name');

1 comment:

  1. Thanks for this Post. I read all your post and you really solved many queries. I think these all posts will help for those who have issue with coding. I'm Magento programmer and always updated with new blogs. Thanks again.

    ReplyDelete