Thank you for fully understanding the question. It is very difficult to look up the source for a function that does not exist. I wouldn't even know where to start.
Cory On Oct 4, 9:10 pm, Grant Cox <[EMAIL PROTECTED]> wrote: > I didn't answer Cory because I didn't know the answer - it's a > behaviour of Cake that I've never really understood. > > When you request a model function that doesn't exist (ie > $this->MyModel->do_some_stuff() ), then "do_some_stuff" is attempted to be > > executed as SQL. I've never used stored procedures, so this > invariably has just thrown an SQL error and I realised I made a > mistake. > > However, surely this functionality has been implemented with a > purpose, and I now assume this is to execute stored procedures as > model functions (sounds pretty cool). Cory is obviously finding it > difficult to find how to actually pass data to this stored procedure. > > Cory - your options are: > 1. Use $this->MyModel->query("do_some_stuff( param1 param2)") or > however you would normally execute the stored procedure directly > through SQL. > 2. Look in the API to find how a missing model function is > automatically parsed into a SQL call - perhaps there is some way of > passing parameters. > 3. Get on IRC, and talk to either Nate or PHPNut about this - they > should know what the real functionality is meant to be. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---