/** * @param \Ess\M2ePro\Model\Listing\Other $otherListing */ protected function setAccountByOtherListingProduct(\Ess\M2ePro\Model\Listing\Other $otherListing) { if (!is_null($this->account) && $this->account->getId() == $otherListing->getAccountId()) { return; } $this->account = $this->amazonFactory->getCachedObjectLoaded('Account', $otherListing->getAccountId()); }