On Tue, Nov 13, 2012 at 10:43 AM, Tsampika <[email protected]> wrote: > 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.
I've used this technique (foreign_key, model) often. Please post the $hasMany/$belongsTo settings for these models. > 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? Please also post the find() code. It may be just that it's not recursing deep enough. Or you are using 'contain' incorrectly. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
