From 09026d92bc621836f67a99c51c58c7d7ece5a499 Mon Sep 17 00:00:00 2001 From: jeffreyguo Date: Wed, 11 Mar 2015 16:27:56 +1300 Subject: [PATCH] Update Dynamic_Default_Fields.md MINOR: fixing grammar mistakes. --- .../00_Model/How_Tos/Dynamic_Default_Fields.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/02_Developer_Guides/00_Model/How_Tos/Dynamic_Default_Fields.md b/docs/en/02_Developer_Guides/00_Model/How_Tos/Dynamic_Default_Fields.md index 5e03d7e8e..ef662bcef 100644 --- a/docs/en/02_Developer_Guides/00_Model/How_Tos/Dynamic_Default_Fields.md +++ b/docs/en/02_Developer_Guides/00_Model/How_Tos/Dynamic_Default_Fields.md @@ -1,8 +1,8 @@ # Dynamic Default Values -The [api:DataObject::$defaults] array allows you to specify simple static values to be the default value for when a -record is created, but in many situations default values needs to be dynamically calculated. In order to do this, the -`[api:DataObject->populateDefaults()]` method will need to be overloaded. +The [api:DataObject::$defaults] array allows you to specify simple static values to be the default values when a +record is created, but in many situations default values need to be dynamically calculated. In order to do this, the +[api:DataObject->populateDefaults()] method will need to be overloaded. This method is called whenever a new record is instantiated, and you must be sure to call the method on the parent object! @@ -33,4 +33,4 @@ methods. For example: $this->FullTitle = $this->Title; } parent::populateDefaults(); - } \ No newline at end of file + }