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 -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -