Hi,
Before I start: creating a user with an email gives no problem, but
updating a user, gives a validation error: 'email left blank'.
I have this array and I want to save the updated data
Array
(
[User] => Array
(
[firstname] => data[User][firstname]
[lastnam
hi, did you check this:
http://book.cakephp.org/view/75/Saving-Your-Data
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe
Just wondering where to start when saving related model data. Links or
tutorials?
Basically I want to remove the functions for updating THINGS and OTHERS from
the USERS_CONTROLLER and use the native THINGS_CONTROLLER and
OTHERS_CONTROLLER
I have 3 controllers:
users_controller : right now "USER
Did you try setting $this->User->UserProfile->id to the id of the
userprofile to be edited? (I'm not really sure about this since I've
never used "saveAll").
Maybe:
$userprofileid = $this->User->UserProfile->find(array('user_id' =>
$this->data['User']['id']),array('id'));
$this->User->UserProfil
hello,
I have two tables "users" and "user_profiles", which are related .
there's no problem to add new data to this tables, but I don't know
how to edit/update this data. when I use $this->User->saveAll($this-
>data), it updates users table, but in the user_profiles it add a new
entry instead of