We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e69be44 commit ab558bdCopy full SHA for ab558bd
app/code/Magento/Catalog/Model/Category.php
@@ -303,7 +303,17 @@ protected function _construct()
303
*/
304
protected function getCustomAttributesCodes()
305
{
306
- return $this->_resource->getCustomAttributesCodes();
+ return $this->_getResource()->getCustomAttributesCodes();
307
+ }
308
+
309
+ /**
310
+ * @throws \Magento\Framework\Exception\LocalizedException
311
+ * @return \Magento\Catalog\Model\ResourceModel\Category
312
+ * @deprecated because resource models should be used directly
313
+ */
314
+ protected function _getResource()
315
+ {
316
+ return parent::_getResource();
317
}
318
319
/**
0 commit comments