src/Entity/UserInstitutionRole.php line 16
<?phpnamespace App\Entity;use App\Entity\Mapped\Entity;use App\Repository\UserInstitutionRoleRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;#[ORM\Entity(repositoryClass: UserInstitutionRoleRepository::class)]#[ORM\Table(name: 'user_role_institution')]class UserInstitutionRole extends Entity{#[ORM\ManyToOne(targetEntity: UserInstitution::class,cascade: ['persist'],inversedBy: 'roles')]#[ORM\JoinColumn(name: 'user_institution',onDelete: 'CASCADE')]private ?UserInstitution $userInstitution = null;#[ORM\ManyToOne(targetEntity: Role::class,cascade: ['persist'])]#[ORM\JoinColumn(name: 'role',onDelete: 'CASCADE')]#[Assert\NotBlank(groups: ['admin-action-create', 'admin-action-update'])]private ?Role $role = null;#[ORM\Column(name: 'current',type: 'boolean',nullable: true)]private ?bool $current = false;public function getUserInstitution(): ?UserInstitution{return $this->userInstitution;}public function setUserInstitution(?UserInstitution $userInstitution): self{$this->userInstitution = $userInstitution;return $this;}public function getRole(): ?Role{return $this->role;}public function setRole(?Role $role): self{$this->role = $role;return $this;}public function isCurrent(): ?bool{return $this->current;}public function setCurrent(?bool $current): self{$this->current = $current;return $this;}}