From 1c7895683f0daea399c572ca5fab52301bd5f99c Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 20 Jan 2009 03:46:29 +0000 Subject: [PATCH] MINOR: added empty statics to PageComment to allow for decoration git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70408 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/sitefeatures/PageComment.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/sitefeatures/PageComment.php b/code/sitefeatures/PageComment.php index 70a319ff..5071bf84 100755 --- a/code/sitefeatures/PageComment.php +++ b/code/sitefeatures/PageComment.php @@ -5,6 +5,7 @@ * @subpackage comments */ class PageComment extends DataObject { + static $db = array( "Name" => "Varchar(200)", "Comment" => "Text", @@ -18,6 +19,12 @@ class PageComment extends DataObject { "Author" => "Member" // Only set when the user is logged in when posting ); + static $has_many = array(); + + static $many_many = array(); + + static $defaults = array(); + static $casting = array( "RSSTitle" => "Varchar", ); @@ -28,7 +35,7 @@ class PageComment extends DataObject { static $moderate = false; static $bbcode = false; - + /** * Return a link to this comment * @return string link to this comment.