f3-factory / fatfree-core

Fat-Free Framework core library
GNU General Public License v3.0
207 stars 88 forks source link

insert ignore on save? #263

Closed adamsewell closed 5 years ago

adamsewell commented 6 years ago

Is there currently a method to use something insert ignore? I have a script that runs that on occasion runs into a duplicate id.

geniuswebtools commented 6 years ago

all requests for help should be posted in the Google groups. https://groups.google.com/forum/#!forum/f3-framework

To answer your question, you can try to load the id first and then if ($model->dry() === false) { continue;}

... or something like that depending on your code.