Open Terroraapje opened 5 years ago
The issue is that property_exists returns false for private parent properties (in https://github.com/nelmio/NelmioApiDocBundle/blob/master/ModelDescriber/ObjectModelDescriber.php#L61), I'm not sure how to fix that properly...
Meanwhile, you can use @SWG\Definition and define your type there.
Hello,
I'm getting the following exception:
Property \"GamePoint\\Entity\\User\\Player:roles\" is an array, but no indication of the array elements are made. Use e.g. string[] for an array of string.
I have a User class with implements Symfony's UserInterface (
Symfony\Component\Security\Core\User\UserInterface
).Player extends User.
The really weird part is, is when I move the complete $roles section (getters, setters, has ....) to Player, everything works fine.
What am I doing wrong here? And how to fix?
Thing I have tried:
@var string[]
and remove Swagger Annotation