is it possible to add INSERT IGNORE into ActiveRecord?





INSERT IGNORE is a MySql command… it does not exist in all databases…

maybe some simulation? if not sported then

try catch exception and suppress error?

If that command is supported only by one database… I don’t see why would that be useful in the core… especialy if we just simulate it or suppresing the error…

if its supports in data base then send IGNORE, if not support then send catch error, and don’t show it like ignore should work.

when working with AR,

$ar = new model;

$ar->value=‘incompactible dublicate value’;


or $ar->ignore->save();

without dirting code with try catch if it not needed.