|
|
@@ -350,12 +350,14 @@ class Utils |
|
|
|
if (!isset($entitiesConfig[$reminder->getEntityName()])) { |
|
|
|
$entitiesConfig[$reminder->getEntityName()] = $this->configManager->getEntityConfig($reminder->getEntityName()); |
|
|
|
} |
|
|
|
if ($reminder->getEntityAction() == 'edit' || $reminder->getEntityAction() == 'show') { |
|
|
|
if($reminder->getEntityAction() == 'edit' || $reminder->getEntityAction() == 'show') { |
|
|
|
if (!isset($entitiesRepo[$reminder->getEntityName()])) { |
|
|
|
$entitiesRepo[$reminder->getEntityName()] = $this->em->getRepository($entitiesConfig[$reminder->getEntityName()]['class']); |
|
|
|
} |
|
|
|
|
|
|
|
$reminder->relatedPage = $entitiesRepo[$reminder->getEntityName()]->find($reminder->getEntityId())->__toString(); |
|
|
|
if($reminder->getEntityId()) { |
|
|
|
$reminder->relatedPage = $entitiesRepo[$reminder->getEntityName()]->find($reminder->getEntityId())->__toString(); |
|
|
|
} |
|
|
|
} else { |
|
|
|
$reminder->relatedPage = 'Liste de ' . $entitiesConfig[$reminder->getEntityName()]['label']; |
|
|
|
} |