mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
fd88d31d9d
commit
fcc687fff2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user