Subject: | Hard coded column names prevent effective subclassing |
Throughout the Handel code base there are various hard coded column
names (specifically the PK/FKs for each table) which make complete
subclassing rather difficult.
For example, most of the methods in Handel::Order look for an 'id'
column whilst in my schema, all my PK columns are all named after the
table in which they live, so My::Schema::Order has a PK of 'order_id'.
This doesn't play nicely with a subclassed Handel::Order in which I have
told it to use my own Schema.