Saturday, August 27, 2011

Re: CakePHP 2 - HABTM saving issue

Ok, I'm getting a little closer. Some digging in more documentation brought me to this array to use instead:

Array (     [User] => Array         (             [email] => (my email here)             [first_name] => Ben             [last_name] => McClure         )      [AuthSource] => Array         (             [id] => 1         )      [AuthSourcesUser] => Array         (             [unique_value] => (my unique value here)         )      [Role] => Array         (             [id] => 2         )  )
Not sure if that's right, but it at least only creates one new row on the auth_sources_users table. The problem is that the auth_source_id, user_id, and unique_value are all unset.

Not sure if this is better or worse, but neither result is what I'd expect.

Ben

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: