Jira issue originally created by user mridgway:
This is related to DDC-258. The issue seems to be fixed with regular column types (string, int, etc) but the same issue has cropped up when we have a OneToOne relationship in two child classes that share the same property name. I have modified the DDC258TestCase class to demonstrate the error.
To summarize: two classes that inherit from the same class happen to have a property with the same name. Both of them are oneToOne relationships. Querying for the objects, one object type (depending on discriminatorMap order) will be hydrate correctly but the other will always be null.
Comment created by @beberlei:
This is not a bug, its documented behavior and is technically not feasible.
Comment created by mridgway:
Why would this not be feasible on relationships even though it is on regular column types? I feel like this is the same issue as DDC-258. I understand a child can't have a property named the same as the parent's, but two children should be able to have properties with the same name (and currently can if it's not a relationship).
oh maybe i am wrong :-)
Issue was closed with resolution "Fixed"
Imported 1 attachments from Jira into https://gist.github.com/df8c531feb8b83b0db13