2024-05-30 167次浏览

我们非常高兴地宣布 Yii Framework 2.0.50 版本发布了。

Please refer to the instructions at https://www.yiiframework.com/download/ to install or upgrade to this version.

This release raises PHP requirements to 7.3.

It has a number of bugfixes, two security fixes, some small enhancements and a new `CallbackDependency:

  • Add new methods BaseActiveRecord::loadRelations() and BaseActiveRecord::loadRelationsFor() to eager load related models for existing primary model instances.
  • Improve performance of handling ErrorHandler::$memoryReserveSize .
  • Add yii\helpers\BaseStringHelper::mask() method for string masking with multibyte support.
  • Add yii\helpers\BaseStringHelper::findBetween() to retrieve a substring that lies between two strings.
  • Add empty array check to ActiveQueryTrait::findWith() .
  • Add custom attributes support to script tags.
  • Add JSON columns support for MariaDB 10.4 or higher.
  • Add yii\caching\CallbackDependency to allow using a callback to determine if a cache dependency is still valid.

Thanks to all Yii community members who contribute to the framework, translators who keep documentation translations up to date and community members who answer questions at forums.

There are many active Yii communities so if you need help or want to share your experience, feel free to join them.

更新的完整列表可以在变更日志中找到。