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?