public function update(Location $location) { $this->setAddress($location->getAddress()); $this->setDescription($location->getDescription()); $this->setLatitude($location->getLatitude()); $this->setLongitude($location->getLongitude()); $this->setName($location->getName()); $this->setLastEditDate($location->getLastEditDate()); $this->setCreationDate($location->getCreationDate()); $this->setAuthor($location->getAuthor()); }