method setLastInsertId documentation in bbn\Db\Languages\Sql

Changes the value of last_insert_id (used by history).

function($id = '') { if ($id === '') { if ($this->id_just_inserted) { $id = $this->id_just_inserted; $this->id_just_inserted = null; } else{ $id = $this->pdo->lastInsertId(); if (\is_string($id) && Str::isInteger($id) && ((int)$id != PHP_INT_MAX)) { $id = (int)$id; } } } else{ $this->id_just_inserted = $id; } $this->last_insert_id = $id; return $this; }

Changes the value of last_insert_id (used by history). BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.