/
forest-lynx
/
project
Обзор
Документация
Войти
/
forest-lynx
/
project
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/Entity/ParticipationProject.php
83 строки
2 KB
forest-lynx
init
04 дек 2024, 10:44
04 дек 2024, 10:44
f4ceba2
Код
Авторство
О чём код?
<?php namespace App\Entity; use App\Repository\ParticipationProjectRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity(repositoryClass: ParticipationProjectRepository::class)] class ParticipationProject { #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(type: Types::DATE_MUTABLE)] private ?\DateTimeInterface $dateFrom = null; #[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)] private ?\DateTimeInterface $dateTo = null; #[ORM\ManyToOne(inversedBy: 'projects', fetch: 'EAGER')] private ?Developer $developer = null; #[ORM\ManyToOne(inversedBy: 'developers', fetch: 'EAGER')] private ?Project $project = null; public function getId(): ?int { return $this->id; } public function getDateFrom(): ?\DateTimeInterface { return $this->dateFrom; } public function setDateFrom(\DateTimeInterface $dateFrom): static { $this->dateFrom = $dateFrom; return $this; } public function getDateTo(): ?\DateTimeInterface { return $this->dateTo; } public function setDateTo(?\DateTimeInterface $dateTo): static { $this->dateTo = $dateTo; return $this; } public function getDeveloper(): ?Developer { return $this->developer; } public function setDeveloper(?Developer $developer): static { $this->developer = $developer; return $this; } public function getProject(): ?Project { return $this->project; } public function setProject(?Project $project): static { $this->project = $project; return $this; } }