From a45d28c23a975b051a2767875d0e3dc627e1ae0c Mon Sep 17 00:00:00 2001 From: SilverFire - Dmitry Naumenko Date: Mon, 19 Feb 2018 18:21:33 +0200 Subject: [PATCH] Updated UPGRADE.md to mention JSON and Arrays support in AR --- framework/UPGRADE.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/UPGRADE.md b/framework/UPGRADE.md index 87c98904a1..f156ae0301 100644 --- a/framework/UPGRADE.md +++ b/framework/UPGRADE.md @@ -62,6 +62,10 @@ Upgrade from Yii 2.0.13 `instanceof yii\db\Expression` in your code, you might consider changing that to checking for the interface and use the newly introduced methods to retrieve the expression content. +* Added JSON support for PostgreSQL and MySQL as well as Arrays support for PostgreSQL on ActiveRecord layer. + In case you already implemented such support yourself, please switch to Yii implementation. Active Record will + return arrays instead of strings after data population and expects arrays to be assigned for further saving them into database. + * `yii\db\PdoValue` class has been introduced to replace a special syntax that was used to declare PDO parameter type when binding parameters to an SQL command, for example: `['value', \PDO::PARAM_STR]`. You should use `new PdoValue('value', \PDO::PARAM_STR)` instead. Old syntax will be removed in Yii 2.1.