Skip to content

AbstractTableGateway $lastInsertValue #117

Closed

Description

@simon-mundy

Package Version

0.6.0

Php Version

8.3

Database Engine

N/A

Basic Information

AbstractTableGateway had a property $lastInsertValue that was defined as a nullable int.

This cannot be useful as many database engines may also return bool|string when proxying the connection.

Steps to Reproduce

Expected Behavior

No response

Actual behavior?

Property definition is too narrow a type. It needs to be the same as getLastGeneratedValue() in the Connection class.

Additional Info

No response

Activity

  1. added this to the 0.6.0 milestone on Jan 12, 2026
  2. self-assigned this
    on Jan 12, 2026
  3. added
    bugSomething isn't working
    qaImprovements in quality assurance of the project
    confirmedHas been confirmed by maintainers
    on Jan 12, 2026
  4. added theissue type on Jan 12, 2026
  5. linked a pull request that will close this issueUpdate AbstractTableGateway.php #119on Jan 12, 2026
  6. moved this from Todo to Done in @phpdbon Jan 23, 2026
  7. kynx commented on Jan 23, 2026

    @kynx
    Contributor

    👍 Yay. Even with MySQL's AUTO_INCREMENT it returned a string. Been meaning to do something about it for years 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingconfirmedHas been confirmed by maintainersqaImprovements in quality assurance of the project

Type

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions