In my app I store instances of several classes (subclasses) in one table. I try to implement a dispatcher which decides what class to inflate to according to row data loaded from db. It seems handy for this dispatcher to be an object instead of class.
In DBIC the setter for result_class is implemented via set_component_class, which expects its argument to be a class - Class::Inspector->loaded is called on it. I can overwrite set_component_class to fallback to set_inherited when its argument is a blessed object, but I am not sure whether the whole idea is not weird. If not do you plan to allow result_class to be an object? (it can be set to object even now but a warning is issued by Class::Inspector) I appreciate any comment Roman Daniel
_______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[email protected]
