Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1398

loading one item at a time when indexBy and EXTRA_LAZY fetch mode is used on a collection

    Details

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

      Description

      collection->get($key)

      Atm in 2.1.2 this is loading the entire collection. It would be really handy that it would extra lazy load only one item using the association and indexBy fields and given key value (if collection is not initialized and the key havent been loaded yet ofc)

      Am i making sense with this?

        Activity

        Reio Piller created issue -
        Reio Piller made changes -
        Field Original Value New Value
        Summary loading one item at a time when indexBy and LAZY_LOAD is used on a collection loading one item at a time when indexBy and EXTRA_LAZY is used on a collection
        Description collection->get($key)

        Atm in 2.1.2 this is loading the entire collection. It would be really handy that it would lazy load only one item using the association and indexBy fields and given key value (if collection is not initialized and the key havent been loaded yet ofc)

        Am i making sense with this?
        collection->get($key)

        Atm in 2.1.2 this is loading the entire collection. It would be really handy that it would extra lazy load only one item using the association and indexBy fields and given key value (if collection is not initialized and the key havent been loaded yet ofc)

        Am i making sense with this?
        Reio Piller made changes -
        Summary loading one item at a time when indexBy and EXTRA_LAZY is used on a collection loading one item at a time when indexBy and EXTRA_LAZY fetch mode is used on a collection
        Benjamin Eberlei made changes -
        Fix Version/s 2.1.3 [ 10164 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.2-DEV [ 10157 ]
        Fix Version/s 2.1.4 [ 10165 ]
        Guilherme Blanco made changes -
        Fix Version/s 2.x [ 10090 ]
        Fix Version/s 2.2 [ 10157 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13053 ] jira-feedback [ 13971 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13971 ] jira-feedback2 [ 15835 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15835 ] jira-feedback3 [ 18091 ]
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.4 [ 10321 ]
        Fix Version/s 2.x [ 10090 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Reio Piller
          • Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: