File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -752,6 +752,7 @@ public function getWhereCondition() : \PHPFUI\ORM\Condition
752
752
* Mass insertion. Does not use a transaction, so surround by a transaction if needed
753
753
*
754
754
* @param array<\PHPFUI\ORM\Record> $records
755
+ * @param string $ignore Pass "ignore" to not error on duplicate records
755
756
*/
756
757
public function insert (array $ records , string $ ignore = '' ) : bool
757
758
{
@@ -760,7 +761,7 @@ public function insert(array $records, string $ignore = '') : bool
760
761
return false ;
761
762
}
762
763
$ tableName = $ this ->getTableName ();
763
- $ sql = "insert {$ ignore }into ` {$ tableName }` ( " ;
764
+ $ sql = "insert {$ ignore } into ` {$ tableName }` ( " ;
764
765
765
766
$ fields = \array_keys ($ this ->getFields ());
766
767
$ comma = '' ;
You can’t perform that action at this time.
0 commit comments