[DDC-2020] [GH-440] The schema tool now doesn't add a foreign constraint when subclassess of... Created: 08/Sep/12 Updated: 01/May/13 Resolved: 01/May/13
|Project:||Doctrine 2 - ORM|
|Reporter:||Benjamin Eberlei||Assignee:||Benjamin Eberlei|
This issue is created automatically through a Github pull request on behalf of sroddy:
... a STI use the same field to map relations with entities of different classes
It seems that there are no particular side-effects in mapping different relationship using the same table column name in different subclasses of a STI hierarchy.
I wasn't sure about this so I tested to see if there were errors. And I was surprised that everything runs without any particular problem.
This PR ensures that the foreign key is not added if there are at least two different classes mapped on the same field of a db table.