public static function set(EntityMetadata $metadata) { self::$metadatas[$metadata->getEntityClass()] = $metadata; }