client/html/src/Client/Html/Account/Favorite/Standard.php
protected function deleteFavorites( array $ids )
	{
		$cntl = \Aimeos\Controller\Frontend::create( $this->getContext(), 'customer' );
		$item = $cntl->uses( ['product' => ['favorite']] )->get();

		foreach( $ids as $id )
		{
			if( ( $listItem = $item->getListItem( 'product', 'favorite', $id ) ) !== null ) {
				$cntl->deleteListItem( 'product', $listItem );
			}
		}

		$cntl->store();
	}
protected function deleteFavorites( array $ids )
	{
		$cntl = \Aimeos\Controller\Frontend::create( $this->getContext(), 'customer' );
		$item = $cntl->uses( ['product' => ['favorite']] )->get();

		foreach( $ids as $id )
		{
			if( ( $listItem = $item->getListItem( 'product', 'favorite', $id ) ) !== null ) {
				$cntl->deleteListItem( 'product', $listItem );
			}
		}

		$cntl->store();
	}
protected function deleteFavorites ( array $ ids ) { $ cntl = \ Aimeos \ Controller \ Frontend :: create ( $ this -> getContext ( ) , 'customer' ) ; $ item = $ cntl -> uses ( [ 'product' => [ 'favorite' ] ] ) -> get ( ) ; foreach ( $ ids as $ id ) { if ( ( $ listItem = $ item -> getListItem ( 'product' , 'favorite' , $ id ) ) !== null ) { $ cntl -> deleteListItem ( 'product' , $ listItem ) ; } } $ cntl -> store ( ) ; }
Removes product favorite references from the customer

@param array $ids List of product IDs
Removes product favorite references from the customer