Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31123

Some properties in Doctrine Gateways and persistence handlers are not cast

    XMLWordPrintable

    Details

      Description

      Some properties are not type-cast correctly (or at all) during hydration of persistence layer objects from a database. The most important cases include:

      • casting alwaysAvailable to a boolean,
      • casting last (just) inserted id generated by a sequence to an integer,
      • casting some other records returned by database fetches to integers.

      Data returned by the database abstraction layer is DB driver-specific, so in all cases if the expected property type is not supposed to be a string, it should be cast.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              andrzej.longosz@ez.no Andrzej Longosz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: