'Text', ); private static $many_many = array( 'RelatedPages' => RestfulServerTestPage::class, 'RelatedAuthors' => RestfulServerTestAuthor::class, 'SortedPages' => [ 'through' => AuthorSortedPageRelation::class, 'from' => 'Parent', 'to' => 'SortedPage', ], ); private static $has_many = array( 'PublishedPages' => RestfulServerTestPage::class, 'Ratings' => RestfulServerTestAuthorRating::class, 'SortedPagesRelation' => AuthorSortedPageRelation::class . '.Parent', ); public function canView($member = null) { return true; } }