WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface::getClassMetadata PHP Method

getClassMetadata() public method

Returns class metadata for given class name
public getClassMetadata ( string $className ) : Doctrine\Common\Persistence\Mapping\ClassMetadata
$className string
return Doctrine\Common\Persistence\Mapping\ClassMetadata
    public function getClassMetadata($className);

Usage Example

 /**
  * Executes the actions
  *
  * @param InputInterface  $input
  * @param OutputInterface $output
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $force = true === $input->getOption('force');
     foreach ($this->mapping as $className => $options) {
         $metadata = $this->doctrineHelper->getClassMetadata($className);
         $this->dumpSerializationFile($metadata, $options, $output, $force);
     }
 }