Properly consider loaded second level entity's foreign keys.