mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
ENHANCEMENT Added empty relationship statics so BlogEntry can be decorated by a DataObjectDecorator
This commit is contained in:
parent
4501f30ed9
commit
cbf39d1ec8
@ -8,6 +8,7 @@
|
|||||||
* An individual blog entry page to show a blog entry in full
|
* An individual blog entry page to show a blog entry in full
|
||||||
*/
|
*/
|
||||||
class BlogEntry extends Page {
|
class BlogEntry extends Page {
|
||||||
|
|
||||||
static $default_parent = 'BlogHolder';
|
static $default_parent = 'BlogHolder';
|
||||||
|
|
||||||
static $can_be_root = false;
|
static $can_be_root = false;
|
||||||
@ -20,6 +21,15 @@ class BlogEntry extends Page {
|
|||||||
"Tags" => "Text"
|
"Tags" => "Text"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static $has_one = array(
|
||||||
|
);
|
||||||
|
|
||||||
|
static $has_many = array(
|
||||||
|
);
|
||||||
|
|
||||||
|
static $many_many = array(
|
||||||
|
);
|
||||||
|
|
||||||
static $casting = array(
|
static $casting = array(
|
||||||
"Date" => "Date"
|
"Date" => "Date"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user