/** * @param Country $country * @return Person */ public function setCountry(Country $country) { $this->country = $country->getId(); return $this; }