You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello all,
I facing this issue when I try to load product collection in chunks
exception 'BadMethodCallException' with message 'Call to a member function addData() on a non-object (null)' in /app/code/community/Smile/MongoCatalog/Model/Resource/Override/Catalog/Product/Collection.php:173
in _loadAttributes() function. My code is
`public function updateIndex()
{
$productsCollection = Mage::getModel('catalog/product')->getCollection()
->addFieldToFilter('visibility', Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH);
Hello all,
I facing this issue when I try to load product collection in chunks
exception 'BadMethodCallException' with message 'Call to a member function addData() on a non-object (null)' in /app/code/community/Smile/MongoCatalog/Model/Resource/Override/Catalog/Product/Collection.php:173
in _loadAttributes() function. My code is
`public function updateIndex()
{
$productsCollection = Mage::getModel('catalog/product')->getCollection()
->addFieldToFilter('visibility', Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH);
}`
Note this is just test code from atwix tutorial
Do you have any solution for this?
The text was updated successfully, but these errors were encountered: