cake-php@googlegroups.com
[Top] [All Lists]

how to get last inserted ids from saveall

Subject: how to get last inserted ids from saveall
From: RJ
Date: Wed, 1 Sep 2010 05:07:52 -0700 PDT
I am doing a saveall to insert multiple row at once. Is there any way
by which i can get the primary ids of all the rows inserted.
$this->Model->getlastinsertedid() returns the id of the latest row..

Any ideas?

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

<Prev in Thread] Current Thread [Next in Thread>
  • how to get last inserted ids from saveall, RJ <=