Symfony Security component register form ChoiceType field insert into bdd as an array(for the roles a user as)

后端 未结 0 1286
挽巷
挽巷 2020-12-08 09:53

When i register with my form(1) the roles the user select isn\'t entered in the bdd instead it enter just [] i couldn\'t get it enter either ROLE_USER or ROLE_ADVERTISER or

相关标签:
回答
  • 消灭零回复
提交回复
热议问题