propelorm/Propel — Issue #243: [inheritance] Propel generates wrong Base<ModelName>Query class
Author: antonk25
Created: 2011-12-28 12:57:55+00:00
State: open

Hello,

I have an error when I define an inheritance where 1 subclass has the same name as the base class.

Schema (alternative syntax):
Download:
tableName: download
columns:
id: { type: INTEGER, required: true, primaryKey: true, autoIncrement: true }
filename: { type: VARCHAR, size: 256 }
...
class_key: { type: integer, required: true }
...
inheritance:
column: class_key
classes:
0: Download
1: PublicationDownload
2: ResumeTemplateDownload
3: BeepBeepBookDownload

The schema above generates the following BaseDownloadQuery class declaration:
class BaseDownloadQuery extends DownloadQuery {
instead of:
abstract class BaseDownloadQuery extends ModelCriteria {

As a result I have infinite nesting.

It works in previous versions. Is there any way to fix this ? Or I should change the subclass name ?

Thank you for your time.