function prepareInputForUpdate($input) { if (isset($input['is_update']) && !$input['is_update']) { $input['softwares_id'] = 0; } return $input; }