This patch fixes a problem where a content type containing
a "flex" column which in turn contains an "inline" type field
for FAL relations, appears to work when copying the record
in a draft workspace but corrupts the FAL relations after
the workspace gets published. Both the original and copied
file relation records point to the original record and the
copied record has no relations.
The problem oddly enough does not affect FAL inline
relation columns that are NOT inside a FlexForm.
See the forge issue for a much more detailed description
and steps to reproduce. Test extension provided.
The solution essentially involves recording the UID of
the newly created placeholder record in the translation
array of temporary "NEW123" pseudo-UIDs to the real
UID of the target record. Doing this causes the references
to be correctly related after workspace is published.