Skip to content

Commit

Permalink
add internal API method
Browse files Browse the repository at this point in the history
  • Loading branch information
Bozhidar Hristov committed Aug 4, 2017
1 parent 2081c83 commit 2c78d47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/CurrentTranslationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public function flush()
}
}

public function detach(TranslatableInterface $translatable)
{
unset($this->managedEntities[$this->getId($translatable)]);
}

/**
* @param TranslatableInterface $entity
*/
Expand All @@ -66,6 +71,7 @@ public function initializeCurrentTranslation(TranslatableInterface $entity)
*/
private function initializeFallbackTranslation(TranslatableInterface $entity)
{
/** @var TranslationService $translationService */
$translationService = $this->container->get('object_bg.translation.service.translation');
$fallbackLocales = $translationService->getFallbackLocales();

Expand Down

0 comments on commit 2c78d47

Please sign in to comment.