[DDC-2243] Inconsistent PHP Type for "bigint" columns Created: 15/Jan/13  Updated: 20/Jan/13  Resolved: 20/Jan/13

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.3.3
Security Level: All

Type: Bug Priority: Major
Reporter: Johannes Schmitt Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None


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 "===".

Generated at Wed Apr 16 04:12:49 UTC 2014 using JIRA 5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5.