Skip to content

Commit

Permalink
Updated UPGRADE.md to mention JSON and Arrays support in AR
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Feb 19, 2018
1 parent 1b3526d commit a45d28c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a45d28c

Please sign in to comment.