if you know both id's and just need to save one extra field, save directly to the join table. but i'm not willing to elaborate, if you aren't willing to spend some time to learn.
On Oct 28, 11:55 am, nomex <[EMAIL PROTECTED]> wrote: > i don't look through. > > how can i create an insert? > > $this->data['File']['id'] = '99'; > $this->data['User']['id'] = '66'; > $this->data['FilesUser']['uploaded'] = '2008-06-06 06:06:20'; > > when i call $this->File->save($this->data); > it saves the user.id and the file.id in the Table, and leaves the > ofther files blank! > > On 28 Okt., 13:26, teknoid <[EMAIL PROTECTED]> wrote: > > > cake creates a model for the join table, which you can use just like > > any other model. > > take a look here, hopefully it'll help: > > >http://teknoid.wordpress.com/2008/07/03/notes-on-cakephp-habtm-part-1... > > > On Oct 28, 7:11 am, nomex <[EMAIL PROTECTED]> wrote: > > > > Hello, i have a DB Design like this > > > > Table: Users (id, ....) > > > Table: Files (id,...) > > > Table files_users(id, user_id, voucher_id) > > > > now i want to extend the files_users table with folowing fields: > > > uploaded and viewed (each a datetime) > > > how can i do this? didn't know where to start! > > > > thanks for your help!- Zitierten Text ausblenden - > > > - Zitierten Text anzeigen - > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
