Re: find all users from another table

2013-04-16 Thread david . suna
Since you are calling find the first time with 'list' it is returning the array as you state. However, you are trying to index into that array with an index of 'PhotoLike' which doesn't exist in that array. So the error message is correct. I believe that the second find should be

Re: find all users from another table

2013-04-16 Thread Chris
thanks david,... I'll try,... off the records,... how long you doing cake apps,...? are you good with jQuery,...? I'm new to cake,... but building awesome social network,... if you want to see it and participate,... drop me a line chris69m AT Yahoo Dot Com On Monday, April 15, 2013 11:10:53

Re: find all users from another table

2013-04-16 Thread Chris
thanks david,... I actually solve this problem with $this-PhotoLike-find('all',... My PhotoLike Model belongsTo 'User' = array('className' = 'User', 'foreignKey'= 'user_id'), and I have a Profile helper that brings profile pictures and user data to show up in a views,... On Monday,

find all users from another table

2013-04-15 Thread Chris
hi guys,... can anyone help please,... I have a PhotoLike table where I have user_id field . I'll like to find all users from User table in PhotoLike (list) I got 2 users like photo,... I got a list array from PhotoLike which is fine: Array ( [59] = 59 [48] = 48 ) next I want to