I'm experiencing something that is new to me and unexpected. I have a function (User->register) in my User model. I am calling it from a controller as $this->User->register($user). $user has a 'User' key in it, plus some others.
When I call $this->create($user); and then inpect $this->data I see a nicely formed array with a User key and all its fields. All good so far. When I then call $this->save() or $this->save($this->data) or $this- >save($this->data['User']) the beforeSave callback is triggered. Inspecting $this->data at the top of beforeSave shows an array that has all keys in it except for the User key. Therefore beforeSave doesn't process correctly. It adds a User key with bare minimum keys and the save, naturally, fails. Any clues? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
