Skip to content
Permalink
Browse files

Add a note about deprecated json_array type since Doctrine 2.6

  • Loading branch information
bocharsky-bw committed Oct 28, 2016
1 parent a688a70 commit cfae786aa1f6535885fa8d5d09e578870082c672
Showing with 4 additions and 0 deletions.
  1. +4 −0 knpu/ep6-security/dynamic-roles.md
@@ -14,6 +14,10 @@ Give it the `@ORM\Column` annotation and set its type to `json_array`:

[[[ code('11cb890ee2') ]]]

***TIP
`json_array` type is deprecated since Doctrine 2.6, you should use `json` instead.
***
This is *really* cool because the `$roles` property will hold an *array* of roles,
but when we save, Doctrine will automatically `json_encode` that array and store
it in a *single* field. When we query, it'll `json_decode` that back to the array.

0 comments on commit cfae786

Please sign in to comment.
You can’t perform that action at this time.