We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f67babc commit 332a78fCopy full SHA for 332a78f
user_guide_src/source/database/query_builder.rst
@@ -937,6 +937,10 @@ constraint by default. Here is an example using an array:
937
938
.. literalinclude:: query_builder/112.php
939
940
+.. note:: For databases other than MySQL, if a table has multiple keys (primary or unique),
941
+ the primary key will be prioritized by default when handling constraints. If you prefer
942
+ to use a different unique key instead of the primary key, use the ``onConstraint()`` method.
943
+
944
The first parameter is an associative array of values.
945
946
Here is an example using an object:
0 commit comments