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

AbstractQuery#getResultCacheId() should be public to be able to manage the cache

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.6
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      The method getResultCacheId of Doctrine\ORM\AbstractQuery should be public.

      I'm trying to customize the cache refresh mechanism to clear previously cached objects in my app.
      To do that I'm adding a prefix to define regions in the cache.
      To be able to set the Id's correctly (adding region prefixes) I need to get the "normal" hash doctrine were used in the normal scenario (trying to avoid introduce new code).
      That's why I will prefer the method to be public.

        Activity

        Hide
        ignaciolarranaga Ignacio Larranaga added a comment -

        Attaching the patch despite is a trivial change.

        Show
        ignaciolarranaga Ignacio Larranaga added a comment - Attaching the patch despite is a trivial change.

          People

          • Assignee:
            beberlei Benjamin Eberlei
            Reporter:
            ignaciolarranaga Ignacio Larranaga
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: