public function getMetadataFactory() { return $this->metadataFactory; }
public static function getMetadata() { /** @var EntityManagerInterface $em */ static::$em = static::$kernel->getContainer()->get('doctrine')->getManager(); $metadata = static::$em->getMetadataFactory()->getAllMetadata(); return $metadata; }