silverstripe/sapphire — pull request #613 by hafriedlander (2012-07-02 05:26:40+00:00)
Title: BUG $db in extensions not inited early enough (#7598)

When querying DataObjects by a generic parent class (like SiteTree for instance), fields added via $db
set on child classes wouldnt appear.

This is because Object::__construct wasnt called early enough in DataObject::__construct, so
extensions werent initialised when $db was first accessed