function game_abandon($id = null) { App::import('Model', 'CharactersQuest'); $CharactersQuest = new CharactersQuest(); $CharactersQuest->deleteAll(array('quest_id' => $id, 'character_id' => $this->Session->read('Game.Character.id'), 'completed' => array('yes', 'no'))); $this->redirect('/game/quests'); }