public function setFormValues(Company $company) { if ($company) { $this->get('name')->setValue($company->getName()); $this->get('regNo')->setValue($company->getRegNo()); $this->get('kmkrNo')->setValue($company->getKmkrNo()); $this->get('address')->setValue($company->getAddress()); $this->get('zip')->setValue($company->getZip()); $this->get('country')->setValue($company->getCountry()); $this->get('city')->setValue($company->getZip()); $this->get('url')->setValue($company->getUrl()); $this->get('phone')->setValue($company->getPhone()); $this->get('email')->setValue($company->getEmail()); $this->get('mob')->setValue($company->getMob()); } return $this; }