public function unsetLocks($hash, $fail = false, $message = NULL) { if (!$this->unsetProcessingLock) { return; } $this->listingProduct->deleteObjectLocks(NULL, $hash); $this->listingProduct->deleteObjectLocks('in_action', $hash); $this->listingProduct->deleteObjectLocks('search_action', $hash); $this->listingProduct->getListing()->deleteObjectLocks(NULL, $hash); $this->listingProduct->getListing()->deleteObjectLocks('products_in_action', $hash); $this->listingProduct->getListing()->deleteObjectLocks('products_search_action', $hash); $this->getAccount()->deleteObjectLocks('products_in_action', $hash); $this->getAccount()->deleteObjectLocks('products_search_action', $hash); $this->getMarketplace()->deleteObjectLocks('products_in_action', $hash); $this->getMarketplace()->deleteObjectLocks('products_search_action', $hash); $processingStatus = Ess_M2ePro_Model_Amazon_Listing_Product::GENERAL_ID_SEARCH_STATUS_NONE; $this->listingProduct->getChildObject()->setData('general_id_search_status', $processingStatus)->save(); if ($fail) { $logModel = Mage::getModel('M2ePro/Listing_Log'); $logModel->setComponentMode(Ess_M2ePro_Helper_Component_Amazon::NICK); $logModel->addListingMessage($this->listingProduct->getListingId(), Ess_M2ePro_Model_Log_Abstract::INITIATOR_UNKNOWN, NULL, Ess_M2ePro_Model_Listing_Log::ACTION_UNKNOWN, $message, Ess_M2ePro_Model_Log_Abstract::TYPE_ERROR, Ess_M2ePro_Model_Log_Abstract::PRIORITY_HIGH); } }