Skip to content


DDC-865: Passing an array as parameter #5387

doctrinebot opened this Issue · 4 comments

2 participants


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.

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


Comment created by @beberlei:

This will be implemented as part of DDC-952


Comment created by @beberlei:



Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.1 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.