Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Phalcon
Db
Adapter
MongoDB
InsertOneResult
getInsertedId
Phalcon\Db\Adapter\MongoDB\InsertOneResult::getInsertedId PHP Method
InsertOneResult Class Documentation
Show file
Open project: phalcon/incubator
getInsertedId()
public
method
If the document already an ID prior to insertion (i.e. the driver did not need to generate an ID), this will contain its "_id". Any driver-generated ID will be an MongoDB\BSON\ObjectID instance.
public
getInsertedId
( ) :
mixed
return
mixed
public function getInsertedId() { return $this->insertedId; }
InsertOneResult
__construct
getInsertedCount
getInsertedId
isAcknowledged