user: correct property name

This commit is contained in:
nobohan
2021-11-16 17:51:05 +01:00
parent 02f6a1d110
commit 32c7695d80
2 changed files with 13 additions and 13 deletions

View File

@@ -143,7 +143,7 @@ class User implements AdvancedUserInterface {
* @var Location|null
* @ORM\ManyToOne(targetEntity=Location::class)
*/
private ?Location $location = null;
private ?Location $currentLocation = null;
/**
* User constructor.
@@ -496,18 +496,18 @@ class User implements AdvancedUserInterface {
/**
* @return Location|null
*/
public function getLocation(): ?Location
public function getCurrentLocation(): ?Location
{
return $this->location;
return $this->currentLocation;
}
/**
* @param Location|null $location
* @return User
*/
public function setLocation(?Location $location): User
public function setCurrentLocation(?Location $currentLocation): User
{
$this->location = $location;
$this->currentLocation = $currentLocation;
return $this;
}
}