src/Db/MySqlDb.php
public function insert($tablename, array $rows, array $options = []) {
        $sql = $this->buildInsert($tablename, $rows, true, $options);
        $this->query($sql, Db::QUERY_WRITE);
        $id = $this->pdo()->lastInsertId();
        if (is_numeric($id)) {
            return (int)$id;
        } else {
            return $id;
        }
    }
public function insert($tablename, array $rows, array $options = []) {
        $sql = $this->buildInsert($tablename, $rows, true, $options);
        $this->query($sql, Db::QUERY_WRITE);
        $id = $this->pdo()->lastInsertId();
        if (is_numeric($id)) {
            return (int)$id;
        } else {
            return $id;
        }
    }
{@inheritdoc}