Warning (512): Model "User" is not associated with model "User" [CORE\cake\libs\model\behaviors\containable.php, line 340]
im getting this error when accessing datas of photo, friend user has many photos and friend, photos and friend belongs to user
in photos index page, two warnings one for user mentioned above and other for 'Friend' as same friend is not associated with model 'friend'
what to do? what to check?
find()
call look like (and where is it happening) and how are the relevant associations defined on thePhoto
andFriend
model. – Rob Wilkerson$this->User->find()
call withUser
in thecontain
option array, which is causing the error. It's also unnecessary, because thecontain
option is used to specify which other models, associated (directly or indirectly) withUser
, to retrieve. – Daniel Wright