yii2-usuario icon indicating copy to clipboard operation
yii2-usuario copied to clipboard

Fix postgres rule unserialization

Open pawelkania opened this issue 3 years ago • 0 comments

Yii2 migration for Postgres uses bytea for field "data" (see: https://github.com/yiisoft/yii2/commit/23790272dc561aacf2070cbbda396f49e44cbb7d#diff-9dc218c5c0834622090067e24bb745073a454b843a5e150d1498af80ebdd73fa) and bytea is resource in php so unserialize will throw error.

This code is taken from Yii2 DbManager: https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L449

pawelkania avatar Oct 19 '20 10:10 pawelkania