Trying to load model by name from a category factory:
$categoryModel = $this->_categoryFactory->create(); $categoryModel->loadByAttribute('name', 'Other'); return $categoryModel->toArray(); // this is empty for some reason
I debugged that in resource model, collection query is crafted properly, but why i can't make
Magento\Catalog\Model\Category\Interceptor instance, and
_data property for some reason is empty, how cat i obtain data from loaded model ?
When I try to load it with
load($categoryId) I am not able to make