From 43d0ae6263ab4f13243898dfa7e249addad845f1 Mon Sep 17 00:00:00 2001 From: Nic Date: Fri, 23 Jan 2015 10:04:19 -0600 Subject: [PATCH] Update 11_Scaffolding.md to use dataFieldByName --- docs/en/02_Developer_Guides/00_Model/11_Scaffolding.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/02_Developer_Guides/00_Model/11_Scaffolding.md b/docs/en/02_Developer_Guides/00_Model/11_Scaffolding.md index 79d508417..f0d64e644 100644 --- a/docs/en/02_Developer_Guides/00_Model/11_Scaffolding.md +++ b/docs/en/02_Developer_Guides/00_Model/11_Scaffolding.md @@ -26,7 +26,7 @@ An example is `DataObject`, SilverStripe will automatically create your CMS inte public function getCMSFields() { // parent::getCMSFields() does all the hard work and creates the fields for Title, IsActive and Content. $fields = parent::getCMSFields(); - $fields->fieldByName('IsActive')->setTitle('Is active?'); + $fields->dataFieldByName('IsActive')->setTitle('Is active?'); return $fields; } @@ -225,4 +225,4 @@ Non-textual elements (such as images and their manipulations) can also be used i ## API Documentation * [api:FormScaffolder] -* [api:DataObject] \ No newline at end of file +* [api:DataObject]