I have a bunch of DNS records in a table, where the "type" column defines the type of the given record.
I would like to have a class hierarchy of models in Lithium representing these records such as:
RR - base resource record (abstract - sort of)
RR_SOA - SOA record, extends RR
RR_CNAME - CNAME record, extends RR
... etc ...
So one class for each record, all mapping to the same table.
Next I would like to use RR::find which would automagically give me a list of objects where the class of each object corresponds to the type of the actual record.
Is this even possible without too much black magic?