Tuesday, November 13, 2012

My Model Relationships don't work

I have three models: Category, Post, Attachment
My Relations in these Models are:

1. Category hasMany Post hasMany Attachment 
2. Post hasMany Attachment
3. Category hasMany Attachment

My attachments table has the following fields: id, title, foreign_key, model
The field model contains Category or Post.

The Error:
The CategoriesController don't show me the attachments of the posts (Category->Post->Attachment), but it show's me the attachments of the categories.
Why? Is there something else to do?

Thanks a lot for help,

Regards Bettina


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate