diff --git a/Command/ImportMappingDoctrineCommand.php b/Command/ImportMappingDoctrineCommand.php
index <HASH>..<HASH> 100644
--- a/Command/ImportMappingDoctrineCommand.php
+++ b/Command/ImportMappingDoctrineCommand.php
@@ -77,6 +77,9 @@ EOT
         $em = $this->getEntityManager($this->container, $input->getOption('em'));
         $databaseDriver = new DatabaseDriver($em->getConnection()->getSchemaManager());
         $em->getConfiguration()->setMetadataDriverImpl($databaseDriver);
+        
+        $emName = $input->getOption('em');
+        $emName = $emName ? $emName : 'default';
 
         $cmf = new DisconnectedClassMetadataFactory();
         $cmf->setEntityManager($em);
=Fixed a Notice level error thrown when running doctrine:mapping:import,  was undefined.