silverstripe-blog/model/BlogCategory.php
2013-07-21 11:23:35 +01:00

25 lines
423 B
PHP
Executable File

<?php
/**
* A blog category fo generalising blog posts.
*
* @package silverstripe
* @subpackage blog
*
* @author Michael Strong <micmania@hotmail.co.uk>
**/
class BlogCategory extends DataObject {
private static $db = array(
"Title" => "Varchar(255)",
);
private static $has_one = array(
"Blog" => "Blog",
);
private static $many_many = array(
"BlogPosts" => "BlogPost",
);
}