@@ 70-83 (lines=14) @@ | ||
67 | * @package elastica |
|
68 | * @subpackage tests |
|
69 | */ |
|
70 | class FlickrTagTO extends DataObject implements TestOnly { |
|
71 | private static $db = array( |
|
72 | 'Value' => 'Varchar', |
|
73 | 'FlickrID' => 'Varchar', |
|
74 | 'RawValue' => 'HTMLText' |
|
75 | ); |
|
76 | ||
77 | //many to many |
|
78 | private static $belongs_many_many = array( |
|
79 | 'FlickrPhotoTOs' => 'FlickrPhotoTO' |
|
80 | ); |
|
81 | ||
82 | private static $searchable_fields = array('RawValue'); |
|
83 | } |
|
84 | ||
85 | ||
86 | /** |
|
@@ 90-102 (lines=13) @@ | ||
87 | * @package elastica |
|
88 | * @subpackage tests |
|
89 | */ |
|
90 | class FlickrSetTO extends DataObject implements TestOnly { |
|
91 | private static $searchable_fields = array('Title','FlickrID','Description'); |
|
92 | ||
93 | private static $db = array( |
|
94 | 'Title' => 'Varchar(255)', |
|
95 | 'FlickrID' => 'Varchar', |
|
96 | 'Description' => 'HTMLText' |
|
97 | ); |
|
98 | ||
99 | private static $many_many = array( |
|
100 | 'FlickrPhotoTOs' => 'FlickrPhotoTO' |
|
101 | ); |
|
102 | } |
|
103 | ||
104 | ||
105 |