Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA4
    • Fix Version/s: 2.1
    • Component/s: DQL
    • Security Level: All
    • Labels:
      None

      Description

      First check the entites in attachments (I've deleted everything unnecessary for this example).

      What I want to do is find multiple entities (I have their ids in array) and then do some action with each of them.

      I'm trying to find those entites using IN operator in DQL query, but there is no way (or I was unable find it) to pass the array of ids as parameter to the query. I've tried several ways to do it (check the PictureRepository attachment) but none is working as i want. Further details are described in comments.

      <?php
      //I know i could use something like this but I wonder about the IN stetement right now. The example above is just for show.
      foreach ($pictures as $value) {
      $entity = $repository->find($value);
      /...whatever i want to do with the $entity/
      }
      ?>

      1. AlbumEntity.php
        0.4 kB
        Jáchym Toušek
      2. IdEntity.php
        0.3 kB
        Jáchym Toušek
      3. PictureEntity.php
        0.7 kB
        Jáchym Toušek
      4. PictureRepository.php
        4 kB
        Jáchym Toušek

        Activity

        Hide
        Benjamin Eberlei added a comment -

        This will be implemented as part of DDC-952

        Show
        Benjamin Eberlei added a comment - This will be implemented as part of DDC-952
        Hide
        Benjamin Eberlei added a comment -

        Implemented

        Show
        Benjamin Eberlei added a comment - Implemented

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Jáchym Toušek
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: