Category: html

Could not determine access type for property … the new value must be an array or an instance of Traversable, "AppEntityRole" given

the error : Could not determine access type for property "userRoles" in class "AppEntityUser": The property "userRoles" in class "AppEntityUser" can be defined with the methods "addUserRole()", "removeUserRole()" but the new value must be an array or an instance of…

How can I override the HTML class of form_widget() in Symfony4?

I am using {% form_theme form ‘mypage / _form_layout.html.twig’%} in a twig file containing {{form_start (form)}}. Inside this _form_layout file, {% use ‘bootstrap_4_horizontal_layout.html.twig’%} is written. github. I have an <input> tag generated by VichImageType in my view’s twig file above…