/**
  * Processes the remove action
  * @param zibo\library\orm\definition\ModelTable $modelTable
  * @return null
  */
 private function processRemove(ModelTable $modelTable, array $remove)
 {
     $remove = array_keys($remove);
     foreach ($remove as $dataFormatName) {
         $modelTable->removeDataFormat($dataFormatName);
     }
     $this->wizard->setVariable(BuilderWizard::VARIABLE_MODEL_TABLE, $modelTable);
     $request = $this->wizard->getRequest();
     $response = $this->wizard->getResponse();
     $response->setRedirect($request->getBasePath());
     return null;
 }
 /**
  * @expectedException zibo\library\orm\exception\ModelException
  */
 public function testRemoveDataFormatThrowsExceptionWhenDataFormatNotSet()
 {
     $table = new ModelTable('table');
     $table->removeDataFormat('unexistant');
 }