Skip to content

Commit

Permalink
Merge pull request #23 from wedevelopnl/feature/author-image-owns
Browse files Browse the repository at this point in the history
Update Author.php
  • Loading branch information
Dennisprins93 authored Mar 10, 2023
2 parents fbaf492 + 96cc30a commit d470c0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Models/Author.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ class Author extends DataObject
'ElementArticles' => ElementArticles::class,
];

/**
* @var array
*/
private static $owns = [
'Image',
];

public function getCMSFields(): FieldList
{
$fields = parent::getCMSFields();
Expand Down

0 comments on commit d470c0e

Please sign in to comment.