Skip to content

Commit 2aa0310

Browse files
committed
Fix: Update return information from Database->insert() to clarify that only insertId should be used from the return.
#45
1 parent 95a4c25 commit 2aa0310

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Database.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ public function delete($table, $where = null)
199199
* used). This doesn't need to be set, but it must be if you want to use
200200
* the `Result->insertId()` method.
201201
*
202-
* @return Result
202+
* @return Result Note that only the `insertId()` method can be used in the result. The row's data is
203+
* not populated into the object.
203204
*/
204205
public function insert($table, $set, $pkey = '')
205206
{

0 commit comments

Comments
 (0)