Thanks, the create() thing worked

Dont mind me, this has just been a steep learning curve and I was
getting a little grumpy :(

On May 29, 9:21 pm, clemos <[EMAIL PROTECTED]> wrote:
> 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 cake-php@googlegroups.com
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