- $location = new Location();
- $location->setTitle($locationData['title']);
- $location->setShort($locationData['short']);
- $location->setAddress($locationData['address']);
- $location->setZipcode($locationData['zipcode']);
- $location->setCity($locationData['city']);
- $location->setLatitude($locationData['latitude']);
- $location->setLongitude($locationData['longitude']);
- $location->setHotspot($locationData['hotspot']);
+ $location = new Location($locationData['title'], $locationData['address'], $locationData['zipcode'], $locationData['city'], $locationData['latitude'], $locationData['longitude'], $locationData['hotspot'], $locationData['indoor']);