I want to modify collection object element value without using $collection->getData() as getData() is returning an array. But I want an object to be returned.
$collection = Mage::getModel('test/test')
->getCollection();
$i = 0;
foreach ($collection as $key => $value) {
//$collection[$i]['flat_last_order_amount'] = '39.99';
//$collection[$i]['products_sku'] = '4361-4361';
$i++;
}
I tried with commented code(with using getData()) but its not working. Any other way to do this please.