Commit 84d6fc49 authored by Andreas Heimann's avatar Andreas Heimann

added pronouns field to entity

parent b42cf2f6
......@@ -40,6 +40,7 @@ class APIUserController extends AbstractController
$data['username'] = $result->getUsername();
$data['isVerified'] = $result->getIsVerified();
$data['isPatreon'] = $result->getIsPatreon();
$data['pronouns'] = $result->getPronouns();
if($result->getCoverReference()) {
$data['avatar'] = $baseUrl."/uploads/avatar/".$result->getCoverReference();
} else {
......
......@@ -76,6 +76,11 @@
*/
private $songPlaylists;
/**
* @ORM\Column(type="string", length=32, nullable=true)
*/
private $pronouns;
public function __construct()
{
parent::__construct();
......@@ -190,7 +195,8 @@
'username' => $this->username,
'coverReference' => $this->coverReference,
'isVerified' => $this->isVerified,
'isPatreon' => $this->isPatreon
'isPatreon' => $this->isPatreon,
'pronouns' => $this->pronouns
);
}
......@@ -341,4 +347,16 @@
return $this;
}
public function getPronouns(): ?string
{
return $this->pronouns;
}
public function setPronouns(?string $pronouns): self
{
$this->pronouns = $pronouns;
return $this;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment