I have the following hierarchy:
- AgentConfig has relation ManyToOne with AgentTask.
- AgentTask has DiscriminatorColumn & DiscriminatorMap assigned to it.
- AgentTask has relation ManyToOne with AgentTaskConfig.
I believe the problem is because of the following:
UnitOfWork#doMerge has the tries to get properties the following way:
This obviously doesn't get the parent class (AgentTask) properties.
Later on UnitOfWork fails on line:
because $prevManagedCopy doesn't have properties set from entity.
My proposal is to get the properties the following way: