src/Entity/FranchiseNehmer.php line 12
<?phpnamespace App\Entity;use App\Repository\FranchiseNehmerRepository;use DateTimeImmutable;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: FranchiseNehmerRepository::class)]class FranchiseNehmer{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 128, nullable: true)]private ?string $email = null;#[ORM\OneToOne(inversedBy: "franchise", targetEntity: User::class, cascade: ["persist", "remove"])]#[ORM\JoinColumn(name: "user", nullable: true)]protected ?User $user;#[ORM\OneToMany(mappedBy: 'franchiseNehmer', targetEntity: Studio::class, cascade: ["persist"], orphanRemoval: true)]// #[ORM\JoinColumn(name: 'id',referencedColumnName: 'franchise_nehmer_id ', nullable: true)]public Collection $studio;#[ORM\Column]private ?DateTimeImmutable $createdAt = null;#[ORM\Column]private ?bool $addMitarbeiter = null;#[ORM\Column(length: 11)]private ?string $type = null;#[ORM\Column(options: ['default' => 1])]private ?int $isStudio = null;#[ORM\Column(options: ['default' => 1])]private ?int $news = null;#[ORM\Column(options: ['default' => 1])]private ?int $kurse = null;#[ORM\Column(options: ['default' => 1])]private ?int $zeiten = null;#[ORM\Column(options: ['default' => 1])]private ?int $dokumente = null;#[ORM\Column(options: ['default' => 1])]private ?int $medien = null;#[ORM\Column(options: ['default' => 1])]private ?int $content = null;#[ORM\Column(options: ['default' => 1])]private ?int $leistungen = null;#[ORM\Column(options: ['default' => 1])]private ?int $geoDaten = null;public function __construct(){$this->createdAt = new DateTimeImmutable();$this->isStudio = true;$this->news = 1;$this->kurse = 1;$this->zeiten = 1;$this->dokumente = 1;$this->medien = 1;$this->content = 1;$this->leistungen = 1;$this->geoDaten = 1;$this->studio = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getEmail(): ?string{return $this->email;}public function setEmail(string $email): self{$this->email = $email;return $this;}public function getCreatedAt(): ?DateTimeImmutable{return $this->createdAt;}public function setCreatedAt(DateTimeImmutable $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getUser(): ?User{return $this->user;}public function setUser(?User $user): self{$this->user = $user;return $this;}public function isAddMitarbeiter(): ?bool{return $this->addMitarbeiter;}public function setAddMitarbeiter(bool $addMitarbeiter): self{$this->addMitarbeiter = $addMitarbeiter;return $this;}public function getType(): ?string{return $this->type;}public function setType(string $type): self{$this->type = $type;return $this;}public function isNews(): ?bool{return $this->news;}public function setNews(bool $news): self{$this->news = $news;return $this;}public function isKurse(): ?bool{return $this->kurse;}public function setKurse(bool $kurse): self{$this->kurse = $kurse;return $this;}public function isZeiten(): ?bool{return $this->zeiten;}public function setZeiten(bool $zeiten): self{$this->zeiten = $zeiten;return $this;}public function isDokumente(): ?bool{return $this->dokumente;}public function setDokumente(int $dokumente): self{$this->dokumente = $dokumente;return $this;}public function isMedien(): ?bool{return $this->medien;}public function setMedien(int $medien): self{$this->medien = $medien;return $this;}public function getIsStudio(): ?bool{return $this->isStudio;}public function getNews(): ?int{return $this->news;}public function getKurse(): ?int{return $this->kurse;}public function getZeiten(): ?int{return $this->zeiten;}public function getDokumente(): ?int{return $this->dokumente;}public function getMedien(): ?int{return $this->medien;}public function setIsStudio(int $isStudio): self{$this->isStudio = $isStudio;return $this;}/*** @return Collection<int, Studio>*/public function getStudio(): Collection{return $this->studio;}public function addStudio(Studio $studio): self{if (!$this->studio->contains($studio)) {$this->studio->add($studio);$studio->setFranchiseNehmer($this);}return $this;}public function removeStudio(Studio $studio): self{if ($this->studio->removeElement($studio)) {// set the owning side to null (unless already changed)if ($studio->getFranchiseNehmer() === $this) {$studio->setFranchiseNehmer(null);}}return $this;}public function getContent(): ?int{return $this->content;}public function setContent(?int $content): self{$this->content = $content;return $this;}public function getLeistungen(): ?int{return $this->leistungen;}public function setLeistungen(int $leistungen): self{$this->leistungen = $leistungen;return $this;}public function getGeoDaten(): ?int{return $this->geoDaten;}public function setGeoDaten(int $geoDaten): self{$this->geoDaten = $geoDaten;return $this;}}