Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1004

Rename ObjectID to ObjectId

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.3.0-RC1, 1.3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      For reasons lost to time, the extension contains classes named CursorId and ObjectID. For consistency, we should rename ObjectID to ObjectId.

      This will be consistent with the legacy extension's "MongoId" class, and existing method names (e.g. getCursorId(), getUpsertedId()). Acronyms such as UTCDateTime should remain capitalized (see: PDOStatement).

      Class names in PHP are case-insensitive, so this is not a BC break.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: