Details
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/
}
?>
This will be implemented as part of DDC-952