Re: How to update myprofile data in more than one table

2008-02-01 Thread Matias Lespiau
You will have to set $this-UserProfile-id before saving so cake knows you're willing to update: ! Userprofile Table code starts-- $good=$this-UserProfile-findByUserId($this- data['User']['id']); $note = $this-UserProfile-find($good['UserProfile']

How to update myprofile data in more than one table

2008-01-31 Thread vinoth
Now my need is to update my profile in two tables users and usersprofile table. i use the below code for updation, but it only update in user table, not in userprofile table. instead of update in userprofile, it is inserted the data in a new row. i dont know why? userid is the common field