public function clearFacets() { $facets = new LocationFacetSetting(); $facets->locationId = $this->locationId; $facets->delete(); $this->facets = array(); }