public function setLogo($account, $mediaId) { $media = $this->mediaManager->getEntityById($mediaId); $account->setLogo($media); }