I have following code
$collection = Mage::getModel('catalog/product')->getCollection()
->addAttributeToSelect('sku')
->addAttributeToSelect('name')
->addAttributeToSelect('category_ids')
->addAttributeToSelect('manufacturer')
->addAttributeToSelect('price')
->addAttributeToSelect('special_price')
->addAttributeToSelect('regularprice')
->addAttributeToSelect('tier_price_for_bundle')
->addAttributeToSelect('special_from_date')
->addAttributeToSelect('special_to_date')
->addAttributeToFilter('type_id', array('in' => array('simple')))
->addAttributeToFilter('updated_at', array('from'=>date("Y-m-d", time()-86400)));
->addAttributeToFilter('created_at', array('from'=>date("Y-m-d", time()-86400)));
I want to add OR condition for updated_at and created_at in following
->addAttributeToFilter('updated_at', array('from'=>date("Y-m-d", time()-86400)));
->addAttributeToFilter('created_at', array('from'=>date("Y-m-d", time()-86400)));
So that whether a product is created or updated my collection should load.
How can I do this?