I was trying to use the renameField function as outlined in the docs and found that it was missing! I was able to obtain the code from Trac, though I was under the impression that this should have been in 2.2.2:
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
It looks like matt has just recently added it on that custom branch. I think I added that to the docs after I found that in the code while working on that 2.2.2assets branch... It will be part of 2.2.3 or whenever we merge the changes from that branch.
I will edit the docs to prevent confusing people
Hi Will-
Thanks for clearing that up for me. That is a handy little piece of code!
John