API fixes (#2766)
This commit is contained in:
@@ -173,6 +173,8 @@ class User implements UserInterface, EquatableInterface, \Serializable
|
||||
*/
|
||||
private $preferences;
|
||||
/**
|
||||
* List of all team memberships.
|
||||
*
|
||||
* @var TeamMember[]|ArrayCollection<TeamMember>
|
||||
*
|
||||
* @Serializer\Expose()
|
||||
@@ -273,6 +275,8 @@ class User implements UserInterface, EquatableInterface, \Serializable
|
||||
*/
|
||||
private $passwordRequestedAt;
|
||||
/**
|
||||
* List of all role names
|
||||
*
|
||||
* @Serializer\Expose()
|
||||
* @Serializer\Groups({"User_Entity"})
|
||||
* @Serializer\Type("array<string>")
|
||||
@@ -625,10 +629,12 @@ class User implements UserInterface, EquatableInterface, \Serializable
|
||||
}
|
||||
|
||||
/**
|
||||
* List of all teams, this user is part of
|
||||
*
|
||||
* @Serializer\VirtualProperty
|
||||
* @Serializer\SerializedName("teams"),
|
||||
* @Serializer\Groups({"User_Entity"})
|
||||
* @SWG\Property(ref="#/definitions/TeamEntity")
|
||||
* @SWG\Property(type="array", @SWG\Items(ref="#/definitions/Team"))
|
||||
*
|
||||
* @return Team[]
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user