[news] Yii 2.0.50


We are pleased to announce the release of Yii Framework version 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.
A complete list of changes can be found in the CHANGELOG.