Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1766

Reintroduce old result cache as hydration cache

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.2, 2.3
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      The old result cache should be reintroduced as hydration cache, since it obviously is much faster than just result caching by avoiding hydration.

              $users = $this->_em->createQuery($dql)
                            ->setHydrationCacheProfile(new QueryCacheProfile(null, null, $cache))
                            ->getResult();
      

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: