Skip to content
Snippets Groups Projects
Commit 3ec1e676 authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch Committed by Mateu Aguiló Bosch
Browse files

Issue #3207363 by e0ipso: Fatal error when no repository is found

parent effe36a2
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,9 @@ class RepositoryManager implements EntityWrapperInterface {
*/
public function wrap(EntityInterface $entity): ?WrappedEntityInterface {
$repository = $this->repositoryFromEntity($entity);
if (!$repository) {
return NULL;
}
return $repository->wrap($entity);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment