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']
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