private function configureInheritanceMapping($id, $entity, $repository)
    {
        $entities = [
            $id => [
                'class'      => $entity,
                'repository' => $repository,
            ],
        ];

        if ($this->container->hasParameter('ekyna_core.entities')) {
            $entities = array_merge($this->container->getParameter('ekyna_core.entities'), $entities);
        }
        $this->container->setParameter('ekyna_core.entities', $entities);
    }