ZF-2510: Lazy loading table metadata
When instanced, a Zend_Db_Table object automatically attempts to retrieve table meta-data. This is counterproductive for several reasons - 1. Performance - An extra database call, even if the metadata is not used. 2. Complicated unit test writting process - as testing Zend_Db_Table extending classes requires a live db connection to allow the Zend_Db_Table object to retrieve its metadata, even if not used.
A better solution would be to lazy load the metadata when it is requested (for example, when the info() method is called).