如何迁移 config.persistence.classes 个子类

Howto migrate config.persistence.classes subclasses

Breaking: #87623 中所述,config.persistence.classes 拼写错误配置已替换为 EXT:extension/Configuration/Extbase/Persistence/Classes.php 文件。

这是我的旧错字配置:

plugin.tx_news {
  persistence {
    classes {

      GeorgRinger\News\Domain\Model\News {
        subclasses {
          0 = Vendor\Extension\Domain\Model\News
        }
      }

      Vendor\Extension\Domain\Model\News {
        mapping {
          recordType = 0
          tableName = tx_news_domain_model_news
        }
      }
      
    }
  }
}

这是我目前的新 /Configuration/Extbase/Persistence/Classes.php 文件:

return [

    \Vendor\News\Domain\Model\News::class => [
        'tableName' => 'tx_news_domain_model_news',
        'recordType' => 0,
    ],

];

如何用子类配置缺失的部分?

同样的方法也可以,见:https://github.com/georgringer/news/blob/8857b7cf0e174047fd06d8f22dd28eef5c43503a/Configuration/Extbase/Persistence/Classes.php

return [
    \GeorgRinger\News\Domain\Model\News::class => [
        'subclasses' => [
            \Vendor\Extension\Domain\Model\News::class
        ]
    ]
]