Add relationship support to all core entities