The simplest fix of all would be to just require_once the file that contains the class before the
call to findParentRow()
On 09/05/2009 9:29 PM, iceangel89 wrote:
no way to fix that?
for now, i did a controller plugin,
to do call
new Lab_Models_...() for each model class ... but i dun think thats a good
fix. hmm it was working b4. isit caused by the trunk version?
Mon Zafra wrote:
I believe this is caused by the hardcoded Zend_Loader::loadClass() calls
in
Zend_Db_Table* classes. That method can only find PEAR-style classes in
the
include path.
-- Mon
On Sun, May 10, 2009 at 10:59 AM, iceangel89<[email protected]> wrote:
i noticed that autoloading does not work when i just do a
$this->view->cat->findParentRow("Lab_Models_Departments");
i must do something like
new Lab_Models_Departments(); //probably to trigger autoloading?
$this->view->cat->findParentRow("Lab_Models_Departments");
can i fix this? maybe this only occurs with the trunk version i am using
only?
--
View this message in context:
http://www.nabble.com/DB-Models---Relationships---AutoLoad-dependent-and-parent-classes-tp23466674p23466674.html
Sent from the Zend Framework mailing list archive at Nabble.com.