bugfix - set $table_name for widgets

SilverStripe 4.0.1 throws warnings when the widget module is installed.
This commit is contained in:
Jason Irish 2017-12-14 22:24:20 -06:00
parent 1d6cf1dec6
commit db071b2692
5 changed files with 25 additions and 0 deletions

View File

@ -64,6 +64,11 @@ class BlogArchiveWidget extends Widget
'Blog' => Blog::class,
];
/**
* @var string
*/
private static $table_name = 'BlogArchiveWidget';
/**
* {@inheritdoc}
*/

View File

@ -50,6 +50,11 @@ class BlogCategoriesWidget extends Widget
'Blog' => Blog::class,
];
/**
* @var string
*/
private static $table_name = 'BlogCategoriesWidget';
/**
* {@inheritdoc}
*/

View File

@ -47,6 +47,11 @@ class BlogRecentPostsWidget extends Widget
'Blog' => Blog::class,
];
/**
* @var string
*/
private static $table_name = 'BlogRecentPostsWidget';
/**
* {@inheritdoc}
*/

View File

@ -46,6 +46,11 @@ class BlogTagsCloudWidget extends Widget
'Blog' => Blog::class,
];
/**
* @var string
*/
private static $table_name = 'BlogTagsCloudWidget';
/**
* {@inheritdoc}
*/

View File

@ -49,6 +49,11 @@ class BlogTagsWidget extends Widget
'Blog' => Blog::class
];
/**
* @var string
*/
private static $table_name = 'BlogTagsWidget';
/**
* {@inheritdoc}
*/