You'll still be able to play the game no matter what you buy for the PS4, but chances are you'll still need to use the disc you already have to play it.

I had an issue like this when installed it, I played the free trial just fine eithout any disc, then bought a physical complete edition.
Upon loading the disc it ended up forcing me, for some reason, to delete all of the trial data, then redownload the game digitally, but I can't run the game unless the disc is in the console.