fixes for settign a localisation

This commit is contained in:
2021-11-22 13:43:33 +01:00
parent 69384a84d1
commit 764bb6a21f
6 changed files with 52 additions and 36 deletions

View File

@@ -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]);
}
}