Skip to content

Adds information that ignore() is not unique to insert #6071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion user_guide_src/source/database/query_builder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,8 @@ $builder->ignore()

Generates an insert ignore string based on the data you supply, and runs the
query. So if an entry with the same primary key already exists, the query won't be inserted.
You can optionally pass an **boolean** to the method. Here is an example using the array of the above example:
You can optionally pass an **boolean** to the method. Can also be used on **insertBatch**, **update** and **delete** (when supported).
Here is an example using the array of the above example:

.. literalinclude:: query_builder/078.php

Expand Down