public function getQueryProductsAssembly()
    {
        $category_id = $this->getEntityManager()->getRepository('EcommerceBundle:Category')->AssemblyCategory();
        return $this->createQueryBuilder('p')
            ->where('p.category = :category_id')
            ->setParameter('category_id', $category_id);
    }
public function getQueryProductsAssembly()
    {
        $category_id = $this->getEntityManager()->getRepository('EcommerceBundle:Category')->AssemblyCategory();
        return $this->createQueryBuilder('p')
            ->where('p.category = :category_id')
            ->setParameter('category_id', $category_id);
    }
public function getQueryProductsAssembly ( ) { $ category_id = $ this -> getEntityManager ( ) -> getRepository ( 'EcommerceBundle:Category' ) -> AssemblyCategory ( ) ; return $ this -> createQueryBuilder ( 'p' ) -> where ( 'p.category = :category_id' ) -> setParameter ( 'category_id' , $ category_id ) ; }
Return products of the assembly category

@return \Doctrine\ORM\QueryBuilder
Return products of the assembly category