Merge pull request #9935 from manuth/patch-8

Update Dynamic_Default_Fields.md
This commit is contained in:
Daniel Hensby 2021-05-14 20:23:26 +01:00 committed by GitHub
commit d3e1678823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ summary: Learn how to add default values to your models
## Static Default Values
The [DataObject::$defaults](api:SilverStripe\ORM\DataObject::$defaults) array allows you to specify simple static values to be the default values when a record is created.
A simple example is if you have a dog and by default it's bark is "Woof":
A simple example is if you have a dog and by default its bark is "Woof":
```php
use SilverStripe\ORM\DataObject;