Wednesday, September 1, 2010

Re: How to add multiple rows in one time ?

is it possible for me to save just 2 fields of Eating table without
insert the 'id' (primary key of Eating table) ?
if i used $this->Eating->saveAll($data['Eating']); like u
explained..seems it will insert the id too...


On Sep 2, 10:39 am, Yusuf Widiyatmono <wmo...@gmail.com> wrote:
> you can use saveAll
> $this->Eating->saveAll($data['Eating']);
> please read saveAll from the api.
>
> Yusuf Widiyatmono

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: