<?php
namespace App\Entity;
use App\Repository\UserPositionsGroupRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=UserPositionsGroupRepository::class)
*/
class UserPositionsGroup
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=64)
*/
private $group_name;
/**
* @ORM\ManyToOne(targetEntity=UserPositions::class, inversedBy="groups")
*/
private $user_position;
public function getId(): ?int
{
return $this->id;
}
public function getGroupName(): ?string
{
return $this->group_name;
}
public function setGroupName(string $group_name): self
{
$this->group_name = $group_name;
return $this;
}
public function getUserPosition(): ?UserPositions
{
return $this->user_position;
}
public function setUserPosition(?UserPositions $user_position): self
{
$this->user_position = $user_position;
return $this;
}
}