for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as JMS;
use Swagger\Annotations as SWG;
/**
* @ORM\Entity(repositoryClass="App\Repository\UserRepository")
* @ORM\Table(name="user")
*
* @JMS\ExclusionPolicy("all")
*/
class User
{
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
private $id;
* @ORM\Column(type="string")
* @JMS\Groups({"users", "guild"})
* @JMS\Expose
private $uuid;
private $title;
* @ORM\ManyToOne(targetEntity="Guild", inversedBy="users")
* @ORM\JoinColumn(name="guild_id", referencedColumnName="id")
private $guild;
* Get id.
* @return int
public function getId()
return $this->id;
}
* Set uuid.
* @param string $uuid
* @return User
public function setUuid($uuid)
$this->uuid = $uuid;
return $this;
* Get uuid.
* @return string
public function getUuid()
return $this->uuid;
* Set title.
* @param string $title
public function setTitle($title)
$this->title = $title;
* Get title.
public function getTitle()
return $this->title;
* Set guild.
* @param \App\Entity\Guild|null $guild
public function setGuild(\App\Entity\Guild $guild = null)
$this->guild = $guild;
* Get guild.
* @return \App\Entity\Guild|null
public function getGuild()
return $this->guild;