Update Dynamic_Default_Fields.md

This commit is contained in:
Manuel Thalmann 2021-05-14 15:29:11 +02:00 committed by GitHub
parent 0a7570dd96
commit 42f0957bd5
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;