[Bug 557493] Defining relationships in OOo does not work correctly