Hi all,
I have an HABTM relationship between tables named Users and Notes. I
only want to populate the join table when a note is sent to a user.
The join table will be used to determine which users have permission
to view which notes. Because both the note record and the user record
are already created and I just want to join them I was trying to do
something like this:
$this->Account->User->Notes_users->create();
$this->Account->User->Notes_user->saveField("user_id", $myuserid);
$this->Account->User->Notes_user->saveField("note_id", $note_id);
$this->Account->User->Notes_user->saveField("views_left", $this-
>data['Sentmessage']['views']);
But this obviously doesn't work. Is there a way to manually create
records like this?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---