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

As a Developer I want lazy loading of content type groups

    XMLWordPrintable

Details

    Description

      As a Developer I want $contentType->contentTypeGroups to be loaded lazily since I usually don't need to iterate on them, I mainly need to get info on the type only and don't want to see it slowed down by group loading and object mapping.

      This is to be served as example of how to enrich the API with more lazy loaded properties.

      Implementation note: This can be done using Generator available in PHP 5.5 and higher. Besides saving on unneeded loads, doing this kind of changes several places on the api should theoretically have the benefit of reducing memory consumption.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andre.romcke-obsolete@ez.no André Rømcke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: