3 ms·
With PHP 8.1 I can easily map database JSON column as an array in a model class by setting the property type as array and the database abstraction runs json_dec
by mekster 5y ago
With PHP 8.1 I can easily map database JSON column as an array in a model class by setting the property type as array and the database abstraction runs json_decode on array typed properties when fetching and json_encode when saving. Quite handy.