Skip to content

Commit 3a5b27f

Browse files
committed
docs: clarify insertGetID prepared query behavior
Signed-off-by: memleakd <121398829+memleakd@users.noreply.github.com>
1 parent a1c6984 commit 3a5b27f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

user_guide_src/source/database/query_builder.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,9 @@ Inserts a row and returns the insert ID reported by the database driver:
11131113
This method returns ``false`` if the insert fails, no row is inserted, or the
11141114
builder is in test mode. It uses the same insert ID behavior as ``$db->insertID()``.
11151115

1116+
.. note:: This method cannot be used when preparing queries with ``$db->prepare()``
1117+
because prepared queries require the builder method to return a query object.
1118+
11161119
$builder->ignore()
11171120
------------------
11181121

0 commit comments

Comments
 (0)