symfony2 - Query Builder where IN arrayCollection -



symfony2 - Query Builder where IN arrayCollection -

how possible query homecoming results ? productcategory arraycollection of objects related formitemposition.

$qb = $this->getquerybuilder('fi'); $items = $qb ->innerjoin('fi.formitemposition', 'fip') ->where('fip.productcategory in (:productcategories)') ->andwhere('fip.documentcategory = :documentcategory') ->setparameters(['documentcategory' => $documentcategory, 'productcategories' => $productcategories ]);

symfony2 doctrine2

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -