Cavity-QED effects on entangled photon generation from a quantum dot