Are you not allowing the person to update their user and profile
details at the same time?  If you were both values would be in the
data array to be compared.

If you're not then you must be including the user's id in the data
array either by a hidden field in the form or by setting it before
save/validate in the controller otherwise it will not update an
existing record.  In this case you have the user's id in the data
array to run a find for the other email.

If you want to retrieve Auth information in your models then I suggest
you have a read of this blog post:
http://www.pseudocoder.com/archives/2008/10/06/accessing-user-sessions-from-models-or-anywhere-in-cakephp-revealed/

HTH

Paul

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to