I'd like to add a default where clause to all dataobjects so I don't have to write things like this everytime: DataObject::get()->where('Archived = 0')
How would you go about it? I was thinking of creating a BaseDataObject that extends DataObject and overrides the get method.
Anyone done anything similar before?
Thanks for any help/advice