@sersilva - I have just tried your suggestion and it DOES prevent the
weird output (crash?) I was getting.

However, there must still be some things I don't understand about
these belongsTo relationships:

1) I do remember something in the CookBook about making relationship
alias names unique but in the examples about belongsTo it doesn't come
up. I can't remember where I saw the caution about names being unique.

2) Now that I have something that doesn't crash, I still don't get
that I want. With the relationships I have defined, I would like to be
able to do
$this->Image->read(null, '1');

and in the data returned have the hierarchy above Image all the way up
to the Page data. That does not happen. Should it?

Thanks,
Ken

On Oct 27, 1:21 pm, Sergio Silva <[email protected]> wrote:
> 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
>

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

Reply via email to