Both Philip and Robert turned away from seeking a military solution in favour of a political compromise. Accordingly, Robert made an accommodation with Philip in June 1320, under which Robert would confirm his young grandson, Louis, as his designated heir, in return for Louis being pledged in marriage to Philip's second daughter, Margaret. This would provide Robert, and then Louis, with strong French support within Flanders. Louis was, to a great extent, already under Philip's influence. Louis had been brought up in Nevers in central France, and at Philip's court. and was culturally effectively a French prince. This arrangement was a considerable success for Philip's policy, although over time Louis' clear French loyalties and lack of political links within Flanders itself would lead to political upheaval and peasant revolt.