mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
30 lines
669 B
PHP
30 lines
669 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Forms\Tests\FormScaffolderTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class Article extends DataObject implements TestOnly
|
|
{
|
|
private static $table_name = 'FormScaffolderTest_Article';
|
|
|
|
private static $db = [
|
|
'Title' => 'Varchar',
|
|
'Content' => 'HTMLText'
|
|
];
|
|
|
|
private static $has_one = [
|
|
'Author' => Author::class,
|
|
'Subject' => DataObject::class
|
|
];
|
|
|
|
private static $many_many = [
|
|
'Tags' => Tag::class,
|
|
];
|
|
|
|
private static $has_many = [
|
|
'SubjectOfArticles' => 'SilverStripe\\Forms\\Tests\\FormScaffolderTest\\Article.Subject'
|
|
];
|
|
}
|