Skip to content

Commit bca263c

Browse files
authored
Merge pull request #5924 from michaelrk02/develop
[docs/models] expose getInsertID() method
2 parents 88e71c9 + f0ce83f commit bca263c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

user_guide_src/source/models/model.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ the array's values are the values to save for that key:
295295

296296
.. literalinclude:: model/015.php
297297

298+
You can retrieve the last inserted row's primary key using the ``getInsertID()`` method.
299+
298300
update()
299301
--------
300302

0 commit comments

Comments
 (0)