silverstripe-framework/tests/php/ORM/DataObjectSchemaTest/WithRelation.php

24 lines
621 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\ORM\Tests\DataObjectSchemaTest;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DataObjectSchema;
2016-10-14 03:30:05 +02:00
class WithRelation extends NoFields
{
private static $table_name = 'DataObjectSchemaTest_WithRelation';
2016-10-14 03:30:05 +02:00
private static $has_one = [
'Relation' => HasFields::class,
'PolymorphicRelation' => DataObject::class,
'MultiRelationalRelation' => [
'class' => DataObject::class,
DataObjectSchema::HAS_ONE_MULTI_RELATIONAL => true,
],
'ArraySyntaxRelation' => [
'class' => HasFields::class,
],
];
2016-10-14 03:30:05 +02:00
}