[BUGFIX] foreign_match_fields not fully supported

foreign_match_fields were not fully supported
Resolves: #47694
Relates: #45337
Releases: 6.2, 6.1
Change-Id: I212cbdb5d4a3791c1d8ed1e431007e10dd9f11e8
Reviewed-on: https://review.typo3.org/25412
Reviewed-by: Markus Klein
Tested-by: Markus Klein