File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -394,10 +394,11 @@ automatically during hydration and persistence.
394394.. tip ::
395395
396396 Use ``json `` when enum values may contain commas, when you need to store
397- int-backed enums (as it preserves value types), or when the column also
398- stores complex/nested data structures. Prefer ``simple_array `` for a
399- compact, human-readable storage of string-backed enums whose values do not
400- contain commas.
397+ int-backed enums (as it preserves value types), when the column also
398+ stores complex/nested data structures, or when you want to query individual
399+ values using database-native JSON operators (e.g. PostgreSQL ``jsonb ``).
400+ Prefer ``simple_array `` for a compact, human-readable storage of
401+ string-backed enums whose values do not contain commas.
401402
402403+-------------------+-----------------------------+-------------------------------+
403404| Column type | Database storage | PHP type |
You can’t perform that action at this time.
0 commit comments