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 ...@@ -40,6 +40,7 @@ class APIUserController extends AbstractController
$data['username'] = $result->getUsername(); $data['username'] = $result->getUsername();
$data['isVerified'] = $result->getIsVerified(); $data['isVerified'] = $result->getIsVerified();
$data['isPatreon'] = $result->getIsPatreon(); $data['isPatreon'] = $result->getIsPatreon();
$data['pronouns'] = $result->getPronouns();
if($result->getCoverReference()) { if($result->getCoverReference()) {
$data['avatar'] = $baseUrl."/uploads/avatar/".$result->getCoverReference(); $data['avatar'] = $baseUrl."/uploads/avatar/".$result->getCoverReference();
} else { } else {
......
...@@ -76,6 +76,11 @@ ...@@ -76,6 +76,11 @@
*/ */
private $songPlaylists; private $songPlaylists;
/**
* @ORM\Column(type="string", length=32, nullable=true)
*/
private $pronouns;
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
...@@ -190,7 +195,8 @@ ...@@ -190,7 +195,8 @@
'username' => $this->username, 'username' => $this->username,
'coverReference' => $this->coverReference, 'coverReference' => $this->coverReference,
'isVerified' => $this->isVerified, 'isVerified' => $this->isVerified,
'isPatreon' => $this->isPatreon 'isPatreon' => $this->isPatreon,
'pronouns' => $this->pronouns
); );
} }
...@@ -341,4 +347,16 @@ ...@@ -341,4 +347,16 @@
return $this; 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