I am trying to save more then one entry, and then return an array of
all inserted id's only it will only save the last entry.. and returns
an array of whatever was put in but all values are of the last entry
of the araay. This is actually the only one being saved also. Is there
any other way around this?

In my model i have..

foreach ($tagNames as $newtag) {
                                $tag['Tag']['name'] = $newtag;
                                echo $tag['Tag']['name'];
                                if($this->save($tag))
                                {
                                        $tag_id[] = $this->getLastInsertId();
                                }
                        }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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