Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2974

[GH-950] Can cache empty collections

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of goetas:

      Url: https://github.com/doctrine/doctrine2/pull/950

      Message:

      I should be able to cache an "empty" collection.

      I have a some objects, where 90% of these have on-to-many relations with zero associated elements.
      This causes doctrine to run a query each time, instead of cache it as empty relation.

        Activity

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-950] was closed:
        https://github.com/doctrine/doctrine2/pull/950

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-950] was closed: https://github.com/doctrine/doctrine2/pull/950
        Show
        Fabio B. Silva added a comment - Fixed by : https://github.com/doctrine/doctrine2/commit/a3b41046124e345ef75686c03446ceeeff2103ed

          People

          • Assignee:
            Fabio B. Silva
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: