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
Post a Comment