Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Reserved words for fields

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

Page: 1
Go to End
Author Topic: 774 Views
  • Derek
    Avatar
    Community Member
    6 Posts

    Reserved words for fields Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Reserved words for fields Link to this post

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

    774 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.