mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Update Dynamic_Default_Fields.md
MINOR: fixing grammar mistakes.
This commit is contained in:
parent
403f2b91b0
commit
09026d92bc
@ -1,8 +1,8 @@
|
|||||||
# Dynamic Default Values
|
# Dynamic Default Values
|
||||||
|
|
||||||
The [api:DataObject::$defaults] array allows you to specify simple static values to be the default value for when a
|
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 needs to be dynamically calculated. In order to do this, the
|
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.
|
[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
|
This method is called whenever a new record is instantiated, and you must be sure to call the method on the parent
|
||||||
object!
|
object!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user