* * @ORM\ManyToMany( * targetEntity="Chill\MainBundle\Entity\PermissionsGroup", * mappedBy="roleScopes") */ private Collection $permissionsGroups; /** * @ORM\Column(type="string", length=255) */ private ?string $role = null; /** * @ORM\ManyToOne( * targetEntity="Chill\MainBundle\Entity\Scope", * inversedBy="roleScopes") * * @ORM\JoinColumn(nullable=true, name="scope_id") * * @ORM\Cache(usage="NONSTRICT_READ_WRITE") */ private ?Scope $scope = null; public function __construct() { $this->permissionsGroups = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getRole(): ?string { return $this->role; } public function getScope(): ?Scope { return $this->scope; } public function setRole(string $role = null): self { $this->role = $role; return $this; } public function setScope(Scope $scope = null): self { $this->scope = $scope; return $this; } }