DDC-865: Passing an array as parameter #5387

Closed
doctrinebot opened this Issue Nov 7, 2010 · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user enumag:

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/
}
?>

@doctrinebot

Comment created by @beberlei:

This will be implemented as part of DDC-952

@doctrinebot

Comment created by @beberlei:

Implemented

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment