Skip to content

Commit 709c279

Browse files
authored
Update README.md
1 parent 9c84907 commit 709c279

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,21 @@ Attach a new behavior to your model
4242

4343
usage
4444

45+
```php
46+
$dataInsert = [ ['title text', 'description'], ['title2 text', 'description2'], ['title3 text', 'descriptio3'] ];
47+
//Optional column parameter
48+
$column = ['title', 'description'];
49+
```
50+
4551
```php
4652
//INSERT ON DUPLICATE KEY UPDATE
4753
$model = new Post();
48-
$model->InsertUpdate($dataInsert)
54+
$model->InsertUpdate($dataInsert, $column)
4955
```
5056
or
5157

5258
```php
5359
//INSERT IGNORE
5460
$model = new Post();
55-
$model->insertIgnore($dataInsert)
61+
$model->insertIgnore($dataInsert, $column)
5662
```

0 commit comments

Comments
 (0)