src/Model/Repository/TSoftDelete.php
public function delete($id = 0, $user = 0)
	{
		$remove = array(
			'deleted_at' => new \DateTime(),
		);

		if ($user) {
			$remove['deleted_by'] = $user;
		}

		$this->update($id, $remove);

		return TRUE;
	}
public function delete($id = 0, $user = 0)
	{
		$remove = array(
			'deleted_at' => new \DateTime(),
		);

		if ($user) {
			$remove['deleted_by'] = $user;
		}

		$this->update($id, $remove);

		return TRUE;
	}
Soft delete

@param $id int
@param int $user

@return bool