Search code examples
inheritanceormpropel

Propel Inheritance: generate only children tables


In Concrete Inheritance, is it possible to mark parent as abstract and have NO table generated for it?

For instance:

  • Abstract A
  • B extends A
  • C extends A

› That would generate all 3 classes (one abstract), but only 2 tables (table B and table C)


Solution

  • Use skipSql on table definition:

    <table name="abstract_a" idMethod="native" skipSql="true">
    ...
    </table>