Per the IMDB:
“Hollywood star Ben Affleck’s deleted cameo in girlfriend Jennifer Garner’s latest movie Elektra is set to be included in the forthcoming DVD of the Daredevil spin-off. Affleck began dating the Alias beauty shortly after he visited the Vancouver, Canada set of the action movie last summer. Despite filming a small role in Elektra, producers removed Affleck’s scene from the final cut after they discovered the two actors were dating, fearing a similar backlash to Affleck’s films Gigli and Jersey Girl, in which he starred alongside then fiancee Jennifer Lopez. Movie site RopeofSilicon.Com has posted the deleted scene, entitled “Come Back,” in a DVD preview of Elektra.”
Note: Some radical cinema theorists have argued that the ‘backlash’ against Gigli and Jersey Girl didn’t stem from its lead actors dating, but the fact that both movies really, really sucked. So why this should have any effect on Elektra…oh. Never mind.