<?phpnamespace App\Entity;use App\Repository\DiplomeRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=DiplomeRepository::class) */class Diplome{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $university; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $level; /** * @ORM\Column(type="text", nullable=true) */ private $description; /** * @ORM\ManyToOne(targetEntity=Profile::class, inversedBy="diplomes") * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") */ private $profile; /** * @ORM\Column(type="integer", nullable=true) */ private $obtentionYear; public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getUniversity(): ?string { return $this->university; } public function setUniversity(string $university): self { $this->university = $university; return $this; } public function getLevel(): ?string { return $this->level; } public function setLevel(string $level): self { $this->level = $level; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(string $description): self { $this->description = $description; return $this; } public function getProfile(): ?Profile { return $this->profile; } public function setProfile(?Profile $profile): self { $this->profile = $profile; return $this; } public function getObtentionYear(): ?int { return $this->obtentionYear; } public function setObtentionYear(int $obtentionYear): self { $this->obtentionYear = $obtentionYear; return $this; }}