Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

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.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Reserved words for fields


Go to End


2 Posts   1942 Views

Avatar
Derek

Community Member, 6 Posts

4 April 2011 at 2:37pm

Is there a list of reserved words for field names?
Today I discovered I couldn't name a field Email and have the data saved when editing. I changed the field name to Emails and it now works using updateCMSFields.

Avatar
Willr

Forum Moderator, 5523 Posts

6 April 2011 at 8:17pm

It depends on the object you have overriding. Have a look at the $db array of the parent classes. Member for instance will have fields already defined like FirstName, Surname, Email etc..