controller/jobs/src/Controller/Jobs/Product/Bought/Standard.php
protected function removeListItems( $productId )
	{
		$manager = \Aimeos\MShop::create( $this->getContext(), 'product/lists' );

		$search = $manager->createSearch();
		$expr = array(
			$search->compare( '==', 'product.lists.parentid', $productId ),
			$search->compare( '==', 'product.lists.domain', 'product' ),
			$search->compare( '==', 'product.lists.type', 'bought-together' ),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );

		$listItems = $manager->searchItems( $search );

		$manager->deleteItems( array_keys( $listItems ) );
	}
protected function removeListItems( $productId )
	{
		$manager = \Aimeos\MShop::create( $this->getContext(), 'product/lists' );

		$search = $manager->createSearch();
		$expr = array(
			$search->compare( '==', 'product.lists.parentid', $productId ),
			$search->compare( '==', 'product.lists.domain', 'product' ),
			$search->compare( '==', 'product.lists.type', 'bought-together' ),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );

		$listItems = $manager->searchItems( $search );

		$manager->deleteItems( array_keys( $listItems ) );
	}
protected function removeListItems ( $ productId ) { $ manager = \ Aimeos \ MShop :: create ( $ this -> getContext ( ) , 'product/lists' ) ; $ search = $ manager -> createSearch ( ) ; $ expr = array ( $ search -> compare ( '==' , 'product.lists.parentid' , $ productId ) , $ search -> compare ( '==' , 'product.lists.domain' , 'product' ) , $ search -> compare ( '==' , 'product.lists.type' , 'bought-together' ) , ) ; $ search -> setConditions ( $ search -> combine ( '&&' , $ expr ) ) ; $ listItems = $ manager -> searchItems ( $ search ) ; $ manager -> deleteItems ( array_keys ( $ listItems ) ) ; }
Remove all suggested products from product list.

@param string $productId Unique ID of the product the references should be removed from
Remove all suggested products from product list .