Skip to content

Commit

Permalink
Corrected scope on entities
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Mar 2, 2024
1 parent 4ff1454 commit 86f026f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tests/Assets/Entity/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class Category
#[ORM\Id]
#[ORM\Column(type: 'integer')]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private int $id;
protected int $id;

#[ORM\Column(type: 'string', nullable: true)]
private string $name;
protected string $name;

public function getId(): int|null
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Assets/Entity/City.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ class City
#[ORM\Id]
#[ORM\Column(type: 'integer')]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private int $id;
protected int $id;

#[ORM\Column(type: 'string', nullable: true)]
private string $name;
protected string $name;

#[ORM\OneToOne(targetEntity: Country::class)]
#[ORM\JoinColumn(name: 'country_id', referencedColumnName: 'id')]
private Country $country;
protected Country $country;

public function getId(): int|null
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Assets/Entity/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class Country
#[ORM\Id]
#[ORM\Column(type: 'integer')]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private int $id;
protected int $id;

#[ORM\Column(type: 'string', nullable: true)]
private string $name;
protected string $name;

public function getId(): int|null
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Assets/Entity/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class Date
#[ORM\Id]
#[ORM\Column(type: 'integer')]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private int $id;
protected int $id;

#[ORM\Column(type: 'date', nullable: true)]
private DateTime $date;
protected DateTime $date;

public function getId(): int|null
{
Expand Down

0 comments on commit 86f026f

Please sign in to comment.