/** * Deletes a product by its associated id * * @param string $id Product's id * @return boolean */ public function deleteById($id) { $name = Filter::escape($this->productMapper->fetchNameById($id)); if ($this->removeAllById($id)) { $this->track('Product "%s" has been removed', $name); return true; } else { return false; } }