mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
25 lines
423 B
PHP
25 lines
423 B
PHP
|
<?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",
|
||
|
);
|
||
|
|
||
|
}
|