how to save multiple records in iteration?

for ( ) {

$this->attributes = $pin; 



hi, this is not working T______T

it will only save one record… other will update…

you have to create a new model in the for-loop

are model must loop?? like

$model[$i]=new Model;

I have tried it is usefull. :D :D

If you don’t want to repeat this:

$model = new foobar;



Use (assuming your primary key is automatically generated by auto-increment) :

while ($loop!=false) {






It was worked for me

Thanks. It was a life saver. Cheers.