You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the Symfony forms, based on a DTO. So I have a EditUserDto class which is bound to my form and a User Doctrine entity class. Both classes are excluded for dependency injection.
The Symfony plugin (pro) gives the warning 'You probably dont want to inject a "User" here' (by the way, the ' is missing in "don't") when I use the entity in the constructor of the DTO. Is it supposed to do so? What's a better practice to set the initial values for my DTO?
I am using the Symfony forms, based on a DTO. So I have a EditUserDto class which is bound to my form and a User Doctrine entity class. Both classes are excluded for dependency injection.
The Symfony plugin (pro) gives the warning 'You probably dont want to inject a "User" here' (by the way, the
'
is missing in "don't") when I use the entity in the constructor of the DTO. Is it supposed to do so? What's a better practice to set the initial values for my DTO?The text was updated successfully, but these errors were encountered: