mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
24 lines
621 B
PHP
24 lines
621 B
PHP
<?php
|
|
|
|
namespace SilverStripe\ORM\Tests\DataObjectSchemaTest;
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
use SilverStripe\ORM\DataObjectSchema;
|
|
|
|
class WithRelation extends NoFields
|
|
{
|
|
private static $table_name = 'DataObjectSchemaTest_WithRelation';
|
|
|
|
private static $has_one = [
|
|
'Relation' => HasFields::class,
|
|
'PolymorphicRelation' => DataObject::class,
|
|
'MultiRelationalRelation' => [
|
|
'class' => DataObject::class,
|
|
DataObjectSchema::HAS_ONE_MULTI_RELATIONAL => true,
|
|
],
|
|
'ArraySyntaxRelation' => [
|
|
'class' => HasFields::class,
|
|
],
|
|
];
|
|
}
|