Officials and other staff of the European Commission and other EU institutions are entitled to an EU pension after at least 10 years of service during their working life. The minimum of 10 years of service can be accumulated over several working periods at EU institutions. If a person works for EU institutions less than 10 years, he/she can transfer the accumulated pension capital to private pension fund.
Article about pensions of the officials and other servants of the European Union
Official cohabitation counts as family and entitles you to the allowance. In case it’s relevant to anyone, same sex couples…