Class 'Solar_Model' not found

View: New views
2 Messages — Rating Filter:   Alert me  

Class 'Solar_Model' not found

by Jeff Surgeson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All

Trying to get my existing code to work with latest svn, ran into a small
problem with Solar_Model not found when the model class exists in another
vendor, in other words I have a model class defined in:

Vendor1_Model_Modelclass

and then from

Vendor2_App_Base::_setup()
$this->data = $this->_model->modelclass->fetchAll();

What do I need to do different to get this to work, or is it no longer
possible?

Jeff Surgeson
South Africa
_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk

Re: Class 'Solar_Model' not found

by Paul M Jones-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Sep 8, 2009, at 09:03 , Jeff Surgeson wrote:

> Hi All
>
> Trying to get my existing code to work with latest svn, ran into a  
> small
> problem with Solar_Model not found when the model class exists in  
> another
> vendor, in other words I have a model class defined in:
>
> Vendor1_Model_Modelclass
>
> and then from
>
> Vendor2_App_Base::_setup()
> $this->data = $this->_model->modelclass->fetchAll();
>
> What do I need to do different to get this to work, or is it no longer
> possible?

The Solar_Model, Solar_Model_Record, and Solar_Model_Collection base  
classes are gone now; the Solar_Model_* classes now descend directly  
from Solar_Sql_Model (etc).  You should be able to search for "extends  
Solar_Model" and replace with "extends Solar_Sql_Model", and all  
should work as before.  Sorry for the hassle.




--

Paul M. Jones
http://paul-m-jones.com/




_______________________________________________
Solar-talk mailing list
Solar-talk@...
http://mailman-mail5.webfaction.com/listinfo/solar-talk