Skip to content

Commit

Permalink
Final syntax fixes to allow UDOIT to load
Browse files Browse the repository at this point in the history
  • Loading branch information
dmols committed Jan 8, 2025
1 parent 796f4d5 commit bd6c6cf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Entity/ContentItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Course.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
6 changes: 3 additions & 3 deletions src/Entity/Institution.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions src/Entity/LogEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
5 changes: 2 additions & 3 deletions src/Entity/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd6c6cf

Please sign in to comment.