I'm trying to build a subquery using Zend/Magento's way to build queries.
I'm getting the collection this way: $collection = Mage::getModel('sales/order_item')->getCollection();
This will generate the SQL similar to this one:
SELECT `main_table`.* FROM `sales_flat_order_item` AS `main_table`
It there any way to set a different table alias instead of main_table
?
In other words, is there any way to specify the custom alias for the table in collection.