/** * Gets jobLocation if it exists or creates if it doesn't * * @return Place */ private function getOrCreateJobLocation() { $location = $this->getJobLocation(true); if (!$location) { $location = new Place(); $geo = new GeoCoordinates(); $location->setGeo($geo); } return $location; }