I don't think its built into GridField, but it should be easy enough to implement
You mean if you have three fields (FirstName, LastName, Email), you want "Email" to return 2?
have raised an issue, cheers for the help https://github.com/silverstripe/silverstripe-framework/issues/7762
I'll still raise an issue. I know subclassing Member is frowned upon, but it does have its place when an extension won't cut it
...that's brilliant! It never occurred to me to do that before 😄
Do you know of a framework way to check if a db column is present on a table?
I tried changing Member to
static::class, but that sort of reverses the problem - in that the identifier might not be present on the subclass. In fact, in most cases it probably won't be, but what's a custom Member implementor to do 😄
if I could override onBeforeWrite I could take control myself
You can't override onBeforeWrite. If you don't call parent::onBeforeWrite it throws a user_error
I think the magic number is 12