okay i've put the [$i] before the model, so that i can loop and save
the songs like they should
http://cakephp.org/pastes/show/0693a60ff666745694d660c8c794ab20
but still i have problems with the top5 itself. since it has no fields
(except the id), i thought i could just do $this->Top5->create();
$this->Top5->save(); but that does not result in an insert query? :s
$this->Top5->save(array('Top5'=>array('id'=>'')); works though, i could
do an getLastInsertId() on that, but even then i have to write a loop
that alters all the songs to "contain" the right top5_id, this is
do-able, but i think it could be easier then this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---