Call to a member function getCountryId() on null