I have a custom collection
$someCollection = Mage::getModel('mymodule/mymodel')->getCollection()
->addFieldToSelect('some_field')
->addFieldToFilter('another_field', array('eq' => $someValue));
Now consider, that this collection will always return only one row from the table, i.e.
$someCollection->getSize();
will always be "1". How to get the value of "some_field" without a foreach like:
foreach($someCollection as $row){
$catchTheValue = $row->getSomeField();
}
I don't want to write foreach loop for one iteration. Can someone help?