diff --git a/src/Entity/ContentItem.php b/src/Entity/ContentItem.php index 0cf03774..dd525407 100644 --- a/src/Entity/ContentItem.php +++ b/src/Entity/ContentItem.php @@ -15,14 +15,14 @@ class ContentItem implements \JsonSerializable #[ORM\Id] #[ORM\GeneratedValue] - #[ORM\Column(type="integer")] + #[ORM\Column(type: "integer")] private $id; #[ORM\Column(type: "string", length: 255)] private $title; #[ORM\ManyToOne(targetEntity: "App\Entity\Course", inversedBy: "contentItems")] - #[ORM\JoinColumn(nullable=false)] + #[ORM\JoinColumn(nullable: false)] private $course; #[ORM\Column(type: "string", length: 255)] diff --git a/src/Entity/Course.php b/src/Entity/Course.php index fc3da317..187c71c8 100644 --- a/src/Entity/Course.php +++ b/src/Entity/Course.php @@ -12,7 +12,7 @@ class Course implements \JsonSerializable // Private Members #[ORM\Id] #[ORM\GeneratedValue] - #[ORM\Column(type="integer")] + #[ORM\Column(type: "integer")] private $id; #[ORM\Column(type: "string", length: 255)] diff --git a/src/Entity/Institution.php b/src/Entity/Institution.php index b1aef645..02478b52 100644 --- a/src/Entity/Institution.php +++ b/src/Entity/Institution.php @@ -7,9 +7,9 @@ use Doctrine\ORM\Mapping as ORM; use JsonSerializable; -/** - * @ORM\Entity(repositoryClass="App\Repository\InstitutionRepository") - */ + +#[ORM\Entity(repositoryClass: "App\Repository\InstitutionRepository")] + class Institution implements JsonSerializable { // Private Members diff --git a/src/Entity/LogEntry.php b/src/Entity/LogEntry.php index fdd80ee2..58bc57b2 100644 --- a/src/Entity/LogEntry.php +++ b/src/Entity/LogEntry.php @@ -4,9 +4,8 @@ use Doctrine\ORM\Mapping as ORM; -/** - * @ORM\Entity(repositoryClass="App\Repository\LogEntryRepository") - */ + +#[ORM\Entity(repositoryClass: "App\Repository\LogEntryRepository")] class LogEntry implements \JsonSerializable { #[ORM\Id] diff --git a/src/Entity/Report.php b/src/Entity/Report.php index 4301ecff..666c65e5 100644 --- a/src/Entity/Report.php +++ b/src/Entity/Report.php @@ -5,9 +5,8 @@ use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; -/** - * @ORM\Entity(repositoryClass="App\Repository\ReportRepository") - */ + +#[ORM\Entity(repositoryClass: "App\Repository\ReportRepository")] class Report implements \JsonSerializable { // Private Members