The error could be because the model you are trying to use is actually
not loaded. This type of error often occur when your model is an
"AppModel" and not the one you were hoping for.

debug the Model: debug($this->FirstModel->ThatOtherModel)

The first line of the output should read "ThatOtherModel Object". If
it reads "AppModel Object" you have a reference problem somewhere.
Start looking for spelling errors. When Cake can't find your model-
file the table will be mapped by an instance of AppModel.

/Martin



On Mar 20, 2:57 am, mscdex <[email protected]> wrote:
> On Mar 19, 7:54 pm, jc_mich <[email protected]> wrote:
>
> > I have the next problem when I try to call these functions:
>
> > Warning (512): SQL Error: ERROR:  syntax error at or near "demoFunction"
>
> Post the relevant code. It sounds like you're trying to use SQL to
> call your model functions instead of making the calls in your PHP code?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to