isPost()) { throw new BadRequest(); } if (empty($data['id'])) { throw new BadRequest(); } if (empty($data['link'])) { throw new BadRequest(); } return $this->getRecordService()->unlinkAll($data['id'], $data['link']); } }