/** * コンテンツデータを削除する * * @param Model $model * @param string $id */ public function deleteSearchIndex(Model $model, $id) { $this->SearchIndex = ClassRegistry::init('SearchIndex'); if ($this->SearchIndex->deleteAll(array('SearchIndex.model' => $model->alias, 'SearchIndex.model_id' => $id))) { return $this->updateSearchIndexMeta($model); } }