You have to parse the XML to Cake's pattern and then you can use saveMany, for example. http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-savemany-array-data-null-array-options-array
Att, -- Luiz Antonio S Messias Desenvolvedor Web <http://twitter.com/tonyzrp> @tonyzrp <http://twitter.com/tonyzrp> *LinkedIn* <http://www.linkedin.com/in/luizantoniosmessias> On 28 November 2012 04:18, Sam <lightai...@gmail.com> wrote: > Dear CakePHP experts, > > I have an add() record function that is used as a REST web service via > XML. The code is very simple. Something like below; > > $this->Object->create(); > $this->Object->save($this->request->data); > > The limitation is that this function can only add one record at a time. > What I want is to add multiple records at one time. The XML file can > contain multiple records. So, I would like the function to be able to add > multiple records via REST XML. May I know if CakePHP can be made to do this? > > I tried googling for a solution but could not find any. Can the experts > here advise or provide some hints on how to start? > > Thank you very much > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > 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+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.