jeromegamez/ezpublish — comment on commit a360911b082fde34af2b5b7913161ff314ce9efe
File: kernel/classes/ezpersistentobject.php line 62
By gggeek:

I suggest instead to implement this as real method!
- it can take no parameters, so it can be overridden by subclasses
- it loops over existing parameters using varargs
- it assumes to get one parameter for every column making up the primary key. For this we need to use late static binding to get definition().
- one extra parameter available for asObject
- it can then build the sql!

This way we can remove fetch() definitions from 50 subclasses and reap maximum profit!

Also some subclasses do not implement fetch() (iirc), so I see no need for declarit it as abstract really