src/Entity/Traits/UsesPHPMetaDataTrait.php
public static function loadMetadata(DoctrineClassMetaData $metaData): void
    {
        try {
            self::getDoctrineStaticMeta()->setMetaData($metaData)->buildMetaData();
        } catch (\Exception $e) {
            throw new DoctrineStaticMetaException(
                'Exception in ' . __METHOD__ . ': ' . $e->getMessage(),
                $e->getCode(),
                $e
            );
        }
    }
public static function loadMetadata(DoctrineClassMetaData $metaData): void
    {
        try {
            self::getDoctrineStaticMeta()->setMetaData($metaData)->buildMetaData();
        } catch (\Exception $e) {
            throw new DoctrineStaticMetaException(
                'Exception in ' . __METHOD__ . ': ' . $e->getMessage(),
                $e->getCode(),
                $e
            );
        }
    }
public static function loadMetadata ( DoctrineClassMetaData $ metaData ) : void { try { self :: getDoctrineStaticMeta ( ) -> setMetaData ( $ metaData ) -> buildMetaData ( ) ; } catch ( \ Exception $ e ) { throw new DoctrineStaticMetaException ( 'Exception in ' . __METHOD__ . ': ' . $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } }
Loads the class and property meta data in the class

This is the method called by Doctrine to load the meta data

@param DoctrineClassMetaData $metaData

@throws DoctrineStaticMetaException
@SuppressWarnings(PHPMD.StaticAccess)
Loads the class and property meta data in the class