Php 如何为同一字段筛选具有多个值的集合?

Php 如何为同一字段筛选具有多个值的集合?,php,magento-1.7,Php,Magento 1.7,我正在尝试合并两个由相同字段筛选但字段值不同的集合。但问题是,当我访问结果合并集合时,它的抛出错误(如getMethod无法调用非对象magento)。请给出任何解决方案以使其工作。 这是麦可德 $shippedCollection = array(); $processingCollection = array(); $orderSCollection = Mage::getModel('sales/order')->getCollection(); $shippedCollection

我正在尝试合并两个由相同字段筛选但字段值不同的集合。但问题是,当我访问结果合并集合时,它的抛出错误(如getMethod无法调用非对象magento)。请给出任何解决方案以使其工作。 这是麦可德

$shippedCollection = array();
$processingCollection = array();
$orderSCollection = Mage::getModel('sales/order')->getCollection();
$shippedCollection = $orderSCollection->addFieldToFilter('status','delivered_carrier');
$orderPCollection = Mage::getModel('sales/order')->getCollection();
$processingCollection = $orderPCollection->addFieldToFilter('status','processing');
$order = array_merge($shippedCollection->getAllIds(),$processingCollection->getAllIds());


echo $order->getData('increment_id');
$orderCollection=Mage::getModel('sales/order')->getCollection()
->addFieldToFilter('status',array('in'=>array('delivered_carrier','processing'));
回声“;打印($orderCollection->getColumnValues('increment_id'));模具();
$orderCollection = Mage::getModel('sales/order')->getCollection()
                  ->addFieldToFilter('status',array('in'=>array('delivered_carrier','processing')));

echo "<pre>";print_r($orderCollection->getColumnValues('increment_id'));die();