<?php
namespace App\Entity;
use App\Repository\StudentLevelsRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=StudentLevelsRepository::class)
*/
class StudentLevels {
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Students::class)
*/
private $student;
/**
* @ORM\ManyToOne(targetEntity=Levels::class)
*/
private $level;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $createdAt;
public function getId(): ?int {
return $this->id;
}
public function getStudent(): ?Students {
return $this->student;
}
public function setStudent(?Students $student): self {
$this->student = $student;
return $this;
}
public function getLevel(): ?Levels {
return $this->level;
}
public function setLevel(?Levels $level): self {
$this->level = $level;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface {
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self {
$this->createdAt = $createdAt;
return $this;
}
}