Her father opposed to her marrying a foreigner
In the above sentence it's used a gerund 'marrying' after the pronoun 'her'. What if I use a infinitive verb instead of using a 'gerund' as;
Her father opposed to her to marry a foreigner
Is there any exceptions not to use infinitives after pronouns in such sentences or are these sentences having different meaning?