OCA\Richdocuments\Db::getLastInsertId PHP Method

getLastInsertId() public method

Get id of the recently inserted record
public getLastInsertId ( ) : mixed
return mixed
    public function getLastInsertId()
    {
        return \OC::$server->getDatabaseConnection()->lastInsertId($this->tableName);
    }