I created a symfony2 package that supports jsonb.
Hope this helps.
https://github.com/boldtrn/JsonbBundle
Currently, I prefer to use NativQueries instead of custom DQL functions to query my jsonb fields. Custom functions are too cumbersome in my application.
Everything should be documented in the Bundle.
Robin source share