docs: handling constraints for databases other than MySQL

This commit is contained in:
michalsn 2025-02-19 21:48:15 +01:00
parent f67babcec0
commit 332a78fdc0
No known key found for this signature in database
GPG Key ID: 9ACAA935C3776CE9

View File

@ -937,6 +937,10 @@ constraint by default. Here is an example using an array:
.. literalinclude:: query_builder/112.php
.. note:: For databases other than MySQL, if a table has multiple keys (primary or unique),
the primary key will be prioritized by default when handling constraints. If you prefer
to use a different unique key instead of the primary key, use the ``onConstraint()`` method.
The first parameter is an associative array of values.
Here is an example using an object: