Database: DiscoveredReflection::reloadAllForeignKeys() resets old structure