Sorry... my problems have been reported already, and even fixed here :
http://framework.zend.com/code/browse/Zend_Framework/standard/trunk/library/Zend/Db/Table/Abstract.php?r1=13554&r2=15576
:)
Jérémy a écrit :
Hi,
I have a problem with autloading of row and rowset class in a
Zend_Db_Table object.
Here is the situation :
class Foo_Db_Bar extends Zend_Db_Table_Abstract {
protected $_rowsetClass = "Foo_Db_Bar_Rowset";
}
Foo is my module.
I've setup autoloading and namespaces, so I can do create new instance
of Foo_Db_Bar_Rowset without problems (and without a require/include).
But, in Zend_Db_Table_Abstract, the $_rowsetClass will be loaded like
this :
Zend_Loader::loadClass($this->_rowClass);
So it's not using my namespace/path for autoloading the class...
$table = new Foo_Db_Bar();
$table->createRow(array('foo'=>'bar'));
/*
* ERROR :
* Zend_Loader::include(Foo/Db/Bar/Rowset.php)
[function.Zend-Loader-include
<http://kerema.chihiro/go2/index/importer/date/function.Zend-Loader-include>]:
failed to open stream: No such file or directory
*/
$test = new Foo_Db_Bar_Rowset(); /* <-- this is working, via the
Zend_Loader_Autoloader::autoload() */
Am I missing something ?
Thank you for your help,