如何一次性保存多个数据记录,例如:
$model->title = "Negativ Balance";
$model->settingsName = "negativeBalance";
$model->settingsValue = "0";
$model->save();
$model->title = "Warnung Balance";
$model->settingsName = "warningBalance";
$model->settingsValue = "2";
$model->save();
如果我运行这段代码,只有最后一条记录被保存了,如何一次性保存所有数据?谢谢!