mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
fixes for settign a localisation
This commit is contained in:
@@ -18,4 +18,14 @@ class LocationRepository extends ServiceEntityRepository
|
||||
{
|
||||
parent::__construct($registry, Location::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* fetch locations which are selectable for users
|
||||
*
|
||||
* @return Location[]
|
||||
*/
|
||||
public function findByPublicLocations()
|
||||
{
|
||||
return $this->findBy(['active' => true, 'availableForUsers' => true]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user