Hi Sanfly

You must reset the Model on every loop recursion; your save function
would look like this :

 foreach($this->data['Booking'] as $theBooking){
        $this->Booking->create();
        $theBooking['b_created_at'] = date("Y-m-d H:i:s");
        $theBooking['b_booking_group_id'] = $booking_group_id;
        $this->Booking->save($theBooking);
 }

> Im hoping cake will make my life easier in the long run, but so far
> its taken me a week to do something that would have taken me less than
> a day in native PHP!!!

So why don't you just do it in native PHP ? Nobody forces you to
bother with such anti-productive frameworks as CakePHP...
You should be aware of the fact that learning a framework is like
investing time that you will get back later, when you fully master it.
One week is not "a long run"

+++++++++
Clément

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to