Lets say that I have a table called
data and a model called Data. Then I have Files that inherits from Data. Data is an abstract type and I want to store the actual type of the data in a single field.
I'm wondering how to by able to say
Files::getFirstByVal($val) and have it supply the automatic SQL condition
type = "file" when returning the rows. It would be fine in my case if I had to override some methods in the base class or in each class that inherits from Data.