silverstripe/sapphire — pull request #883 by mateusz (2012-10-16 22:50:42+00:00)
Title: API Add the ability to query if the schema update is in progress.

The specific situation where this is useful is where populateDefaults on
DataObjects needs to query the database. This will break the dev/build
when it tries to create the object via singleton - the query will not be
able to be executed if the table is not there or its schema has changed.

For an example of such use case see Translatable::populateDefaults.