コード例 #1
0
ファイル: IndexStep.php プロジェクト: BGCX261/zibo-svn-to-git
 /**
  * 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 $indexName) {
         $modelTable->removeIndex($indexName);
     }
     $this->wizard->setVariable(BuilderWizard::VARIABLE_MODEL_TABLE, $modelTable);
     $request = $this->wizard->getRequest();
     $response = $this->wizard->getResponse();
     $response->setRedirect($request->getBasePath());
     return null;
 }