Issue Details (XML | Word | Printable)

Key: ZF-3991
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matthew Weier O'Phinney
Reporter: Constantine Yurevich
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Add possibility to change loader class

Created: 19/Aug/08 01:27 AM   Updated: 14/May/09 05:46 AM   Resolved: 14/May/09 05:46 AM
Return to search "Fixed in 1.5.1"
Component/s: Zend_Db_Table
Affects Version/s: 1.6.0RC2
Fix Version/s: 1.8.2

Time Tracking:
Not Specified

Issue Links:
Duplicate
 


 Description  « Hide

When developer has his own loader class and uses it (for example My_Loader) there is no possibility to use it in Zend_Db_Table and Zend_Db_Table_Rowset to load custom rowset and row classes. Now developer needs to override in extended class WHOLE fetchRow and createRow methods of class Zend_Db_Table_Abstract, and change only one row in this methods for example
from:
@Zend_Loader::loadClass($this->_rowClass);
to:
@My_Loader::loadClass($this->_rowClass);

Is it possible to have some method setLoaderClass (similar to setRowClass and setRowsetClass)? Or is it possible just to check somehow if registerAutoload class already registered and use already registered loader class?



Matthew Weier O'Phinney added a comment - 14/May/09 05:46 AM

Resolved in trunk and 1.8 release branch