propelorm/Propel — pull request #365 by mrackwitz (2012-05-24 15:23:37+00:00)
Title: aggregate_column & concrete_inheritance bugfixes

+ Enabled aggregate_column in combination with concrete_inheritance, if the foreign key of the referenced table is in the child table.

+ Added preemptive error handling for concrete_inheritance, if the flag copy_data_from_parent is set and the primary keys have the same name in the parent and in the child table. In this situation you can't (easily) copy the foreign key from the parent. This wasn't made because same named columns are completely ignored, but there was no error handling for the situation. So a wrong schema could be build without this fix. But at runtime, the wrong schema had caused a lack of the method like get[ParentClassName], which will be called by getOrCreateParent(). This needs definitively further investigation.