Whereas inserting in a loop is working perfectly, insert multiple datasets at once will have one flaw, if i am not wrong.
I tried the following. $feeds = $con->insertMulti('feeds', (array) $feeds);
If only one feed cannot be inserted, maybe because it is a duplicate, the rest of the feeds will not be inserted either and $feeds return false. So it was with my example.
Like I said before looping through the array and using the normal (single) inserting method instead only bypasses the duplicate and inserts all other entries. This is what at least I want.
Last not least thank you for your precius library.
Whereas inserting in a loop is working perfectly, insert multiple datasets at once will have one flaw, if i am not wrong.
I tried the following.
$feeds = $con->insertMulti('feeds', (array) $feeds);
If only one feed cannot be inserted, maybe because it is a duplicate, the rest of the feeds will not be inserted either and $feeds return false. So it was with my example.
Like I said before looping through the array and using the normal (single) inserting method instead only bypasses the duplicate and inserts all other entries. This is what at least I want.
Last not least thank you for your precius library.