Can you give your opinion on my approach to changing the type of list
automatically produced for a has_many relation?
My example is: $order->Items() , produces a OrderItemList, instead of a
HasManyList
see:
https://gist.github.com/jedateach/5431637
Getting a result set in a custom implementation of HasManyList, means I
can change, and add extra functionality for display, and calcuation. For
example, I've overridden the sum function to include summing fields on
joined objects.
However, the way I have implemented this subclassing seems untidy/hacky.
Is there, or should there be a nicer way of sub-classing relation lists
that are automatically created?