Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-2243

Inconsistent PHP Type for "bigint" columns


    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.3
    • Component/s: None
    • Security Level: All
    • Labels:


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


        johannes Johannes Schmitt created issue -
        beberlei Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        beberlei Benjamin Eberlei made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 2.3.3 [ 10329 ]
        Resolution Fixed [ 1 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={expand=changesets[0:20].revisions[0:29],reviews, query=DDC-2243}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)


          • Assignee:
            beberlei Benjamin Eberlei
            johannes Johannes Schmitt
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: