Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1103

Addding an event before the load of collections

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      An event triggered when loading collections would be useful for performances. The use case would be batch querying some stuff instead of doing a query per object of the collection in a postLoad event.
      For instance, the Translatable extension from https://github.com/l3pp4rd/DoctrineExtensions loads the translations on postLoad which result in many queries. Being able to load them all in a single query would be useful.

        Activity

        Hide
        Gediminas Morkevicius added a comment -

        I think custom persisters will solve these issues, lets wait for them, there are already enough events

        Show
        Gediminas Morkevicius added a comment - I think custom persisters will solve these issues, lets wait for them, there are already enough events

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Christophe Coevoet
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: