Disregard my last! Just looked in the cookbook, all is ok! :D
On Oct 27, 10:08 pm, John Andersen <[email protected]> wrote:
> I am not sure, but should the hasMany, hasOne not be arrays, thus:
> In Page:
> $hasMany = array('DisplayArea');
> In DisplayArea:
> $hasMany = array('ContentBlock');
> $belongsTo = array('Page');
> In ContentBlock:
> $hasOne = array('Image');
> $belongsTo = array('DisplayArea');
> In Image:
> $belongsTo = array('ContentBlock');
>
> Enjoy,
> John
>
> On Oct 27, 9:57 pm, kdubya <[email protected]> wrote:
>
> > Yes, I have seen your posts. I will try your suggestion.
>
> > Thanks,
> > Ken
>
> > On Oct 27, 3:19 pm, Sergio Silva <[email protected]> wrote:
>
> > > Are you reciving my mails?
>
> > > sersilva said:
> > > 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
>
> > > 2009/10/27 kdubya <[email protected]>:
>
> > > > Well, (this is me looking doubly sheepish) the reason it worked after
> > > > rebooting was I had not put back the DisplayAreabelongsToPage
> > > > 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 [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
-~----------~----~----~----~------~----~------~--~---