So i have 2 tables with both having association belongsToMany to each other. The join table between these 2 has some additional fields and one of them is foreign key to third table. My question is how can i load this association of _jointData between these 2 tables?
Table Articles belongs to many Tags and Tags belongs to many Articles. Join table for both is ArticlesTags which has columns: article_id, tag_id and additional field image_id which is connected with Images table. When in controller, how can I conatin() so that _joinData in view contains not just image_id but the Image object as well?