diff --git a/docs/en/04_Changelogs/4.0.0.md b/docs/en/04_Changelogs/4.0.0.md index c7d907f8e..a8a342958 100644 --- a/docs/en/04_Changelogs/4.0.0.md +++ b/docs/en/04_Changelogs/4.0.0.md @@ -861,10 +861,11 @@ In cases where image-only assets may be assigned to relationships then your data an `Image` datatype, or refer to `DBFile('image/supported')`. ```php +use SilverStripe\Assets\Image; class MyObject extends SilverStripe\ORM\DataObject { private static $has_one = [ - "ImageObject" => "Image" + "ImageObject" => Image::class ]; private static $db = [ "ImageField" => "DBFile('image/supported')"