Tuesday, October 27, 2009

Re: Strange belongsTo problem

You can try changing the alias name of the relationship.

For example:

==========================================
//In DisplayArea Model
var $belongsTo = array(
'PageRelationship' => array( //Instead of just 'Page'
'className' => 'Page,
'foreignKey' => 'page_id'
);
==========================================

sersilva

On 27 oct, 20:08, kdubya <kenwin...@winanstech.com> wrote:
> Well, (this is me looking doubly sheepish) the reason it worked after
> rebooting was I had not put back the DisplayArea belongsTo Page
> association. So the original symptoms still exist but it is
> interesting that I get the same symptoms when recursive is set too
> deep.
>
> I'm still stumped.
> Ken

--~--~---------~--~----~------------~-------~--~----~
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: