Uploaded image for project: '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
    • Status: Resolved
    • Priority: 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

        hypno Reio Piller created issue -
        hypno 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?
        hypno 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
        beberlei Benjamin Eberlei made changes -
        Fix Version/s 2.1.3 [ 10164 ]
        beberlei Benjamin Eberlei made changes -
        Fix Version/s 2.2-DEV [ 10157 ]
        Fix Version/s 2.1.4 [ 10165 ]
        Hide
        guilhermeblanco Guilherme Blanco added a comment -

        Updating fix version

        Show
        guilhermeblanco Guilherme Blanco added a comment - Updating fix version
        guilhermeblanco Guilherme Blanco made changes -
        Fix Version/s 2.x [ 10090 ]
        Fix Version/s 2.2 [ 10157 ]
        Hide
        gcaseres German Caseres added a comment -

        Is there any fix for this? i have the same problem.

        Show
        gcaseres German Caseres added a comment - Is there any fix for this? i have the same problem.
        Hide
        deatheriam Oleg Namaka added a comment - - edited

        It makes a perfect sense here, I wish it was possible, it would give us a room for even more optimization. Any input on the issue from the developers?

        Show
        deatheriam Oleg Namaka added a comment - - edited It makes a perfect sense here, I wish it was possible, it would give us a room for even more optimization. Any input on the issue from the developers?
        beberlei Benjamin Eberlei made changes -
        Workflow jira [ 13053 ] jira-feedback [ 13971 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13971 ] jira-feedback2 [ 15835 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15835 ] jira-feedback3 [ 18091 ]
        Hide
        sandermarechal Sander Marechal added a comment -

        Any progress on this? I'd love to have get() that works on EXTRA_LAZY collections.

        Show
        sandermarechal Sander Marechal added a comment - Any progress on this? I'd love to have get() that works on EXTRA_LAZY collections.
        Hide
        ocramius Marco Pivetta added a comment -

        Sander Marechal pull requests are welcome

        Show
        ocramius Marco Pivetta added a comment - Sander Marechal pull requests are welcome
        Hide
        sandermarechal Sander Marechal added a comment -

        I'm on it I see the ORM is already in 2.4-RC stage. If my pull is accepted, can it still be included in 2.4 or will it have to wait until 2.5?

        Show
        sandermarechal Sander Marechal added a comment - I'm on it I see the ORM is already in 2.4-RC stage. If my pull is accepted, can it still be included in 2.4 or will it have to wait until 2.5?
        Hide
        ocramius Marco Pivetta added a comment -

        Sander Marechal no, it would need to wait for 2.5

        Show
        ocramius Marco Pivetta added a comment - Sander Marechal no, it would need to wait for 2.5
        Hide
        sandermarechal Sander Marechal added a comment -
        Show
        sandermarechal Sander Marechal added a comment - Ah, too bad. Anyway: https://github.com/doctrine/doctrine2/pull/706
        Hide
        beberlei Benjamin Eberlei added a comment -

        Merged for 2.4, we will release some more RCs

        Show
        beberlei Benjamin Eberlei added a comment - Merged for 2.4, we will release some more RCs
        beberlei Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.4 [ 10321 ]
        Fix Version/s 2.x [ 10090 ]
        Resolution Fixed [ 1 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={expand=changesets[0:20].revisions[0:29],reviews, query=DDC-1398}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: