public function delete($where = [], $options = [])
{
if (is_numeric($where)) {
deprecated('ActivityModel->delete(int)', 'ActivityModel->deleteID(int)');
$result = $this->deleteID($where, $options);
return $result;
} elseif (count($where) === 1 && isset($where['ActivityID'])) {
return parent::delete($where, $options);
}
throw new \BadMethodCallException("ActivityModel->delete() is not supported.", 400);
}