getMetadataFactory() public method

public getMetadataFactory ( ) : Doctrine\Common\Persistence\Mapping\ClassMetadataFactory
return Doctrine\Common\Persistence\Mapping\ClassMetadataFactory
 /**
  * Executes the actions
  *
  * @param InputInterface  $input
  * @param OutputInterface $output
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $metadataCollection = $this->doctrineHelper->getMetadataFactory()->getAllMetadata();
     $force = true === $input->getOption('force');
     foreach ($metadataCollection as $entityMetadata) {
         $this->dumpSerializationFile($entityMetadata, $output, $force);
     }
 }
コード例 #2
0
 /**
  * @return array
  */
 protected function getConfiguration()
 {
     $configuration = [];
     $metadataCollection = $this->doctrineHelper->getMetadataFactory()->getAllMetadata();
     foreach ($metadataCollection as $entityMetadata) {
         $this->appendConfigurationFromMetadata($entityMetadata, $configuration);
     }
     return $configuration;
 }