diff --git a/DependencyInjection/EasyAdminExtension.php b/DependencyInjection/EasyAdminExtension.php
index <HASH>..<HASH> 100644
--- a/DependencyInjection/EasyAdminExtension.php
+++ b/DependencyInjection/EasyAdminExtension.php
@@ -62,6 +62,11 @@ class EasyAdminExtension extends Extension
             $parts = explode('\\', $entityClass);
             $entityName = array_pop($parts);
 
+            // to avoid entity name collision, make sure that its name is unique
+            while (array_key_exists($entityName, $entities)) {
+                $entityName .= '_';
+            }
+
             $entities[$entityName] = array(
                 'label' => !is_numeric($key) ? $key : $entityName,
                 'name'  => $entityName,
@@ -79,6 +84,11 @@ class EasyAdminExtension extends Extension
             $parts = explode('\\', $entityConfiguration['class']);
             $realEntityName = array_pop($parts);
 
+            // to avoid entity name collision, make sure that its name is unique
+            while (array_key_exists($realEntityName, $entities)) {
+                $realEntityName .= '_';
+            }
+
             // copy the original entity to not loose any of its configuration
             $entities[$realEntityName] = $config[$customEntityName];
Allow to have different entities with the same exact name

This is very rare, except for entities like "Category" which can
be defined in different bundles for different purposes. The proposed
solution is very simple, but it should do the trick.