0

I am having a problem with deleting data from a table in a plugin.

In the Model I am calling:

$this->delete((int) $this->data['Attachment']['id']);

But it is not deleting, and the ID is correct.

4

1 回答 1

0

请测试:

$this->Model->delete($this->request->data('Model.id'));
于 2013-10-28T16:08:05.753 回答