Why does my module getting warrning “Mysql4 classes are obsolete ”
-
09-10-2020 - |
Question
Hello i have create custom module and getting warning Mysql4 classes are obsolete
class Mymodule_Custom_Model_Mysql4_Stores extends Mage_Core_Model_Mysql4_Abstract
{
public function _construct()
{
$this->_init('custom/stores', 'entity_id');
}
}
getting warning on line number 2
Solution
Mysql4
models still work, but with 1.7 Resocure
models were introduced ... so you'll get a notification, when running codesniffer ...
Guess you'll find complete answer here:
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange