On Feb 2, 4:22 pm, "Doug @ Straw Dogs" <[EMAIL PROTECTED]> wrote:
> I'm having loads of problems using bake in 1.2 beta. The above error
> ("Fatal error: Call to a member function schema() on a non-object")
> occurs when I attempt to bake a view for my tables called "apps".
>
> It has multiple relationships to other tables. Mainly "hasMany"
> relationships.
>
> I've created the controller and model. Although when I did create the
> controller I also got errors:
>
> Warning: Invalid argument supplied for foreach() in /var/www/flex2/
> cake/console/libs/tasks/controller.php on line 291
>
The problem is your choice of model name.
There is already a class named App*, and therefore as it already
exists your model class named App will never, ever, be instanciated.
hth,
AD
*http://api.cakephp.org/1.2/classes.html
> It didn't die that time but its disconcerting.
>
> Does anyone have any ideras on this or should I stick to 1.1 (which
> I'm also having problems with)?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---