Procházet zdrojové kódy

Made the exporter work with the correct entity manager.

pap-florin před 13 roky
rodič
revize
9fac0dc663
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Model/ModelManager.php

+ 1 - 1
Model/ModelManager.php

@@ -362,7 +362,7 @@ class ModelManager implements ModelManagerInterface
      */
     public function getExportFields($class)
     {
-        $metadata = $this->registry->getEntityManager()->getClassMetadata($class);
+        $metadata = $this->getEntityManager($class)->getClassMetadata($class);
 
         return $metadata->getFieldNames();
     }