'Varchar(255)', 'URLSegment' => 'Varchar(255)' ]; /** * @var array */ private static $has_one = [ 'Blog' => Blog::class, ]; /** * @var array */ private static $belongs_many_many = [ 'BlogPosts' => BlogPost::class, ]; /** * {@inheritdoc} */ protected function getListUrlSegment() { return 'category'; } /** * {@inheritdoc} */ protected function getDuplicateError() { return _t(__CLASS__ . '.Duplicate', 'A blog category already exists with that name.'); } }