MAPG-235 refactor: renamed fields in challenge related tables
This commit is contained in:
1 parent
7a1674fdd0
commit
7792f1c3ff
8 files changed
+36
-38
No files matched your search
@@ -4,7 +4,7 @@ class PlaceInChallenge extends Model
|
||||
{
|
||||
protected static string $table = 'place_in_challenge';
|
||||
|
||||
protected static array $fields = ['place_id', 'challenge_id', 'order'];
|
||||
protected static array $fields = ['place_id', 'challenge_id', 'round'];
|
||||
|
||||
protected static array $relations = ['place' => Place::class, 'challenge' => Challenge::class];
|
||||
|
||||
@@ -16,7 +16,7 @@ class PlaceInChallenge extends Model
|
||||
|
||||
private ?int $challengeId = null;
|
||||
|
||||
private int $order;
|
||||
private int $round;
|
||||
|
||||
public function setPlace(Place $place): void
|
||||
{
|
||||
@@ -38,9 +38,9 @@ class PlaceInChallenge extends Model
|
||||
$this->challengeId = $challengeId;
|
||||
}
|
||||
|
||||
public function setOrder(int $order): void
|
||||
public function setRound(int $round): void
|
||||
{
|
||||
$this->order = $order;
|
||||
$this->round = $round;
|
||||
}
|
||||
|
||||
public function getPlace(): ?Place
|
||||
@@ -63,8 +63,8 @@ class PlaceInChallenge extends Model
|
||||
return $this->challengeId;
|
||||
}
|
||||
|
||||
public function getOrder(): int
|
||||
public function getRound(): int
|
||||
{
|
||||
return $this->order;
|
||||
return $this->round;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user