ZF-3239: 'From' table not available in $_parts in Zend_Db_Table_Select
As described in #ZF-3235 it would be desirable to have access to the source table information in a Zend_Db_Table_Select instance. The current implementation sets the "from" information in the __toString() method, after which it's available in the $_parts array and thus accessible via getPart(). It would make sense to have the "from" information available in $_parts directly after the Zend_Db_Table_Select object has been instantiated. Attached is a modified Zend_Db_Table_Select which provides an idea to a possible solution. There's a new method _setParts(), which loads some information into the $_parts array. This is copied from __toString().