mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2243: Inconsistent PHP Type for "bigint" columns #2823
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jan 15, 2013).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user johannes:
It seems like columns of type "bigint" have no consistent PHP type.
If an object is read from the database, the database value seems to be cast to
a PHP string. However, directly after persisting an entity using an id generation strategy of "AUTO" the type is a PHP integer.
I think it would make sense to use a PHP string for both cases as you otherwise can run into problems if you use shallow comparisons such as "===".
@doctrinebot commented on GitHub (Jan 20, 2013):
Issue was closed with resolution "Fixed"