silverstripe/silverstripe-framework — pull request #1979 by nedmas (2013-05-23 15:31:37+00:00)
Title: BUGFIX: singleton('Group')->Members() fails

Running Members() on a Group that has no Db record causes UnsavedRelationList to be returned by DirectMembers() which in turn causes alterDataQuery() to fall over when called on an UnsavedRelationList. This just adds a simple check to prevent it.