i 've a strange assoc problem: class Achievements { $this->belongsToMany('SocialUsers', [ 'foreignKey' => 'achievement_id', 'targetForeignKey' => 'user_id', 'joinTable' => 'achievements_users', 'through'=>'AchievementsUsers' ]); ...
if i delete all cache i raise error: Column not found: 1054 Unknown column 'AchievementsUsers.social_user_id' in 'field list' but if i reload the page all works fine ( until the next cache delete) It's like targetForeignKey was not readed first time execution. I've a lot of this belongsToMany but only here there is this issue Some suggests?! -- 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 unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.