Re: Argument passed By Reference From Controller to Model

2008-04-29 Thread MikeK
Dang just checked the manual - I guess overloading breaks references in php5 also - see http://www.php.net/language.oop5.overloading --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this gr

Re: Argument passed By Reference From Controller to Model

2008-04-29 Thread MikeK
Thanks but it happens on both 4.4.7 and 5.2.4 - frustrating! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this gr

Re: Argument passed By Reference From Controller to Model

2008-04-29 Thread nate
I'm guessing you're on PHP4. The issue is that the Model class is overloaded, and overloading breaks references in PHP4, so you can't use them in your model classes. Upgrade to PHP5. On Apr 29, 12:20 pm, MikeK <[EMAIL PROTECTED]> wrote: > This issue cropped up in a CakePHP app but I think our p

Argument passed By Reference From Controller to Model

2008-04-29 Thread MikeK
This issue cropped up in a CakePHP app but I think our problem is more related to something we don't understand about PHP. It seems invocation ofvia $this of a method in an associated class does not properly handle arguments by reference. In a Bait controller class (BaitsController) a function fo