Php – How to properly create form with enum form type, and pass to twig template?
I'm trying to create a edit form for user and want to list current user roles in form and also want to make choice from all roles from enum Roles. There is a example of my code. Current error is…