Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0-BETA2
-
Fix Version/s: 2.0-BETA4
-
Component/s: Mapping Drivers
-
Security Level: All
-
Labels:None
-
Environment:PHP 5.3 Ubuntu Linux
Description
On an entity (XML mapping atleast) if there is an inheritance-type set but no discriminator-column(s) set the resulting query will have an extra comma at the end of the field list or occasionally (based on inheritance-type) a table alias without a fieldname.
The correct solution would be to throw an exception during the parsing of the mapping that would indicate the inheritance-type is set but no discriminator-columns exist.
Moving this from Major to Minor as a correctly mapped entity works fine, the bug is in the error reporting, not the functionality