V
V
Vyacheslav2018-03-15 12:43:14
Yii
Vyacheslav, 2018-03-15 12:43:14

How to turn off automatic JSON conversion from DB to array in yii2 version 2.0.14 and higher?

Actually a subject.
I updated the project and, of course, everything fell apart.
Damn handsome developers in general.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
itcoder, 2018-04-18
@nskarl

Need to add config/main.php

'container' => [
        'definitions' => [
            \yii\db\pgsql\ColumnSchema::class => [
                'class' => \yii\db\pgsql\ColumnSchema::class,
                'disableJsonSupport' => true,
            ],
        ],
    ],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question