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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Reserved words for fields

Go to End

2 Posts   1462 Views


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.


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..