Unfortunately, @Kevin, if the laptop is still covered, you will need to tamper with its case in order to reseat the HDD, which would void the warranty.
Moreover, the HDD cable inside a laptop usually is just a SATA connector. In other words, it's not really a cable that can be swapped easily like in desktop PCs. Since it's still within the warranty period, better contact the laptop manufacturer's customer support in your country and let them know about the issue. You should be able to find the contacts on their official website. They will most probably refer you to a partnering PC repair service that can replace the failed component.
Good luck!
SuperSoph_WD