| Total Complexity | 0 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class RestfulServerTestPage extends DataObject implements TestOnly |
||
| 9 | { |
||
| 10 | private static $api_access = false; |
||
|
|
|||
| 11 | |||
| 12 | private static $table_name = 'RestfulServerTestPage'; |
||
| 13 | |||
| 14 | private static $db = array( |
||
| 15 | 'Title' => 'Text', |
||
| 16 | 'Content' => 'HTMLText', |
||
| 17 | ); |
||
| 18 | |||
| 19 | private static $has_one = array( |
||
| 20 | 'Author' => RestfulServerTestAuthor::class, |
||
| 21 | ); |
||
| 22 | |||
| 23 | private static $has_many = array( |
||
| 24 | 'TestComments' => RestfulServerTestComment::class |
||
| 25 | ); |
||
| 26 | |||
| 27 | private static $belongs_many_many = array( |
||
| 28 | 'RelatedAuthors' => RestfulServerTestAuthor::class, |
||
| 29 | ); |
||
| 31 |