/** * * @param Product $product * @param unknown $cronStartDateTime * @param string $syncType */ private function _handle_failed_product(Product $product, $cronStartDateTime, $syncType = "insert") { $date = new UDate(trim($cronStartDateTime)); $date->modify('+1 second'); $product->setUpdated($date)->save(); Log::LogEntity($product, 'Product Sync failed with Magento. ' . $syncType . ' operation failed', Log::TYPE_SYSTEM); }