public function processForm()
 {
     parent::processForm();
     if (isset($this->contactInformation->city) || isset($this->contactInformation->contactPerson) || isset($this->contactInformation->email) || isset($this->contactInformation->postalCode) || isset($this->contactInformation->region) || isset($this->contactInformation->streetAddress) || isset($this->contactInformation->telephone) || isset($this->contactInformation->countryCode)) {
         $this->contactInformation->actor = $this->relation->object;
         $this->contactInformation->save();
         $this->contactInformation->makePrimaryContact();
     }
 }
 public function processForm()
 {
     if (isset($this->request->deleteRelations)) {
         foreach ($this->request->deleteRelations as $item) {
             $params = $this->context->routing->parse(Qubit::pathInfo($item));
             $params['_sf_route']->resource->delete();
         }
     }
     return parent::processForm();
 }