src/Entity/UserGallery.php line 10
<?phpnamespace App\Entity;use App\Repository\UserGalleryRepository;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: UserGalleryRepository::class)]class UserGallery{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(targetEntity: Gallery::class)]protected ?Gallery $gallery = null;#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'userGallery')]protected ?User $user = null;public function getId(): ?int{return $this->id;}public function getGallery(): ?Gallery{return $this->gallery;}public function setGallery(?Gallery $gallery): static{$this->gallery = $gallery;return $this;}public function getUser(): ?User{return $this->user;}public function setUser(?User $user): static{$this->user = $user;return $this;}}