Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2745

How can I change fetch mode for one query?

    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
    • Environment:
      Symfony project

      Description

      Sometimes I need to change fetch mode, but one way for it is write raw DQL and set fetch mode there. That is not so much hard but something like $repo->findAll('EAGER') would be more comforatble

        Activity

        Hide
        Marco Pivetta added a comment -

        The repository API is quite cluttered already. I don't think we want more parameters to the various repository methods.

        Show
        Marco Pivetta added a comment - The repository API is quite cluttered already. I don't think we want more parameters to the various repository methods.

          People

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

            Dates

            • Created:
              Updated: