i'm having a silly problem with saving data to a related model.
-----
class AuthorsController extends AppController{
var $uses = array('Author', 'User');
----
In my edit form i'd like to be able to save passwords
(they belong to the User model.)
But everytime cake creates a new User record instead
of just updating the password field.
$this->Author->User->saveField('password', md5($pw1));
Is it because i have to tell the foreign ID ?
Sorry but i'm stuck here,
thanks a ton,
Jyrgen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---