added generic rules for auth firewall (#1472)

This commit is contained in:
Kevin Papst
2020-02-18 13:54:03 +01:00
committed by GitHub
parent c67617262f
commit 7b218c33f9
2 changed files with 7 additions and 2 deletions

View File

@@ -83,6 +83,11 @@ class ConfigurationRepository extends EntityRepository implements ConfigLoaderIn
$entity->setName($configuration->getName());
}
// allow to use entity types
if (is_object($value) && method_exists($value, 'getId')) {
$value = $value->getId();
}
$entity->setValue($value);
$em->persist($entity);