Thursday, January 1, 2009

Models not autobinding on live server (dev server OK)

Hi folks,

I'm having some trouble with CakePHP's automatic model association
feature. My has / belongs to relationships are set up like so:

'Post' => array('className' => 'Post') (and so on)

On my local WAMP server, when I do a findAll() on an object, all its
associated objects are also retrieved - this is good. However, on the
two live servers I've attempted this on, I've had to manually use
bindModel() to get this behavior.

Does anyone know what could cause this? I want to avoid using bindModel
() if possible - I'm guessing it's a server configuration that is
disabling some of cakePHP's automagic here...

Thanks for your help.

--~--~---------~--~----~------------~-------~--~----~
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 group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: