mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
user: correct property name
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user