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