Magento load model by field name
Magento load model by field name
You can load model in magento by field name ,column name as below
$model = Mage::getModel('yourcompany_yourmodule/modelname')->load($fieldvalue,'field_name');
or
$model = Mage::getModel('yourcompany_yourmodule/modelname'); $model = $model->load($columnvalue,'column_name');
Advertisements