From 98c69f2627a220a566e3230b1ccbc9ba538567a6 Mon Sep 17 00:00:00 2001 From: Randy Apuzzo Date: Sun, 26 Jun 2016 13:59:27 -0700 Subject: [PATCH] Adding IGNORE for 5.7 compatibility with older applications --- src/HandyModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HandyModel.php b/src/HandyModel.php index 665721f..718a1c1 100755 --- a/src/HandyModel.php +++ b/src/HandyModel.php @@ -378,7 +378,7 @@ public static function create($propertiesArray) { // Create SQL statement - $sql = "INSERT INTO `".$modelClassName::TABLE_NAME."` SET "; + $sql = "INSERT IGNORE INTO `".$modelClassName::TABLE_NAME."` SET "; foreach ($propertiesArray as $col => $value) {