doctrine/doctrine2 — pull request #691 by 51systems (2013-06-12 00:15:05+00:00)
Title: IDENTITY function fix for Joined Inheritance

In a joined inheritance scenario, the identity function implementation assumed the foreign key column was on the table corresponding to the (sub)class named in the select statement. If the relation was on a super-class incorrect sql was generated.