for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\RestfulServer\Tests\Stubs;
use SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestPage;
use SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestAuthor;
use SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestAuthorRating;
use SilverStripe\ORM\DataObject;
use SilverStripe\Dev\TestOnly;
class RestfulServerTestAuthor extends DataObject implements TestOnly
{
private static $api_access = true;
$api_access
private static $table_name = 'RestfulServerTestAuthor';
$table_name
private static $db = array(
$db
'Name' => 'Text',
);
private static $many_many = array(
$many_many
'RelatedPages' => RestfulServerTestPage::class,
'RelatedAuthors' => RestfulServerTestAuthor::class,
private static $has_many = array(
$has_many
'PublishedPages' => RestfulServerTestPage::class,
'Ratings' => RestfulServerTestAuthorRating::class,
public function canView($member = null)
return true;
}