ZF-6682: Zend_Db_Table_Abstract + Custom RowClass + Zend_Loader_Autoloader_Resource = Fail to load Custom RowClass

Issue Type: Bug Created: 2009-05-15T15:44:20.000+0000 Last Updated: 2009-05-17T20:05:45.000+0000 Status: Resolved Fix version(s): Reporter: Eugene Song (bakadesu) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Db_Table

  • Zend_Loader

Related issues: Attachments:


Zend_Db_Table_Abstract is not friendly with Zend_Loader_Autoloader_Resource when defining a custom Row Class. The Zend_Loader::loadClass($this->_rowClass); tries to load the Row Class and fails/throws exception.

<pre class="highlight">
class DbTable_Test extends Zend_Db_Table
   protected $_rowClass = 'Row_Test';


<pre class="highlight">
// Let the Zend_Loader_Autoloader_Resource load it prior to DbTable usage
new Row_User();

// DbTable stuff
$db = new DbTable_Test();
$select = $db->select()->where('id = ?', 1);
$row = $db->fetchRow($select);

// Row_Test should have loaded correctly / not thrown exception


Posted by Matthew Weier O'Phinney (matthew) on 2009-05-17T20:05:36.000+0000

This duplicates ZF-2533 (and roughly 6-8 other similar or same issues), and is already resolved in trunk and the 1.8 release branch. Changes will release with 1.8.2.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.