phpArrayFile)) { return false; } $metadataFactory = $this->entityManager->getMetadataFactory(); if ($metadataFactory->getLoadedMetadata()) { throw new LogicException('DoctrineMetadataCacheWarmer must load metadata first, check priority of your warmers.'); } $metadataFactory->setCache($arrayAdapter); $metadataFactory->getAllMetadata(); return true; } }