propelorm/Propel — Issue #221: concrete_inheritance not working with multiple schema.xml files
Author: sebastianposch
Created: 2011-12-08 07:09:35+00:00
State: open

concrete_inheritance apparently does not work across multiple schema files. Please see the schema snippets at the end of the post.

There are no errors when I rebuild the model, and all the classes have been generated as well, but if I save a new Agent object at runtime, a "Call to undefined method: setDescendantClass" exception is thrown. Propel should have generated this method for the User class but didn't.

I tried moving the agents table definition from schema2.xml into schema1.xml file and it works fine, however the idea is to have schema1.xml in a central framework, with applications extending the User class via their own schema file.

SCHEMA1.XML:

...

SCHEMA2.XML:

...