I\'ve been stuck on this for the last few hours. I got it working by hacking a few lines in /lib/Varien/Data/Collection/Db.php, but I\'d rather use the proper s
/lib/Varien/Data/Collection/Db.php
To create simple OR condition for collection, use format below:
$orders = Mage::getModel('sales/order')->getResourceCollection(); $orders->addFieldToFilter( 'status', array( 'processing', 'pending', ) );
This will produce SQL like this:
WHERE (((`status` = 'processing') OR (`status` = 'pending')))