silverstripe-framework/tests/php/Forms/FormScaffolderTest/Author.php

22 lines
556 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\Forms\Tests\FormScaffolderTest;
use SilverStripe\Assets\Image;
use SilverStripe\Dev\TestOnly;
use SilverStripe\Security\Member;
class Author extends Member implements TestOnly
{
private static $table_name = 'FormScaffolderTest_Author';
private static $has_one = array(
'ProfileImage' => Image::class
);
private static $has_many = array(
'Articles' => 'SilverStripe\\Forms\\Tests\\FormScaffolderTest\\Article.Author',
'SubjectOfArticles' => 'SilverStripe\\Forms\\Tests\\FormScaffolderTest\\Article.Subject'
);
}