From fcc687fff205e0fd3954199e1377b304d7f5b24c Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 23 Sep 2008 00:17:58 +0000 Subject: [PATCH] MINOR: Added some more api doku for DataObject:: git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62877 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/DataObject.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/model/DataObject.php b/core/model/DataObject.php index bee4f95cb..c564c3c1c 100644 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -2651,6 +2651,11 @@ class DataObject extends ViewableData implements DataObjectInterface { * Inserts standard column-values when a DataObject * is instanciated. Does not insert default records {@see $default_records}. * This is a map from classname to default value. + * + * - If you would like to change a default value in a sub-class, just specify it. + * - If you would like to disable the default value given by a parent class, set the default value to 0,'',or false in your + * subclass. Setting it to null won't work. + * * @var array */ public static $defaults = null;