TransientPropertyValueException is thrown when entity relation created by column other than id

Description

I have following 2 entities

TransientPropertyValueException is thrown when I save instance of Version entity as follows:

TransientPropertyValueException message:

This module "core" is already in database.

I think, it should check by referenced column when it is referenced by custom column

Detail of stack tracle:

Environment

None

Assignee

Unassigned

Reporter

Batbileg D

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

Affirmative

Pull Request

None

backportDecision

None

Worked in

5.2.7

Components

Affects versions

Priority

Blocker
Configure