silverstripe-dms/code/DMSTag.php

17 lines
334 B
PHP
Raw Normal View History

<?php
/**
* Hold a set of metadata category/value tags associated with a DMSDocument
*/
class DMSTag extends DataObject {
2013-08-22 13:38:26 +02:00
private static $db = array(
'Category' => 'Varchar(1024)',
'Value' => 'Varchar(1024)',
'MultiValue' => 'Boolean(1)'
);
2013-08-22 13:38:26 +02:00
private static $belongs_many_many = array(
'Documents' => 'DMSDocument'
);
2013-08-22 13:38:26 +02:00
}