2016-10-14 03:30:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\ORM\Tests\ManyManyListTest;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
|
|
|
|
class ExtraFieldsObject extends DataObject implements TestOnly
|
|
|
|
{
|
2016-12-16 05:34:21 +01:00
|
|
|
private static $table_name = 'ManyManyListTest_ExtraFields';
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2020-04-20 19:58:09 +02:00
|
|
|
private static $many_many = [
|
2017-06-28 19:23:38 +02:00
|
|
|
'Clients' => ExtraFieldsObject::class,
|
|
|
|
'Products' => Product::class,
|
2020-04-20 19:58:09 +02:00
|
|
|
];
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2020-04-20 19:58:09 +02:00
|
|
|
private static $belongs_many_many = [
|
2016-12-16 05:34:21 +01:00
|
|
|
'WorksWith' => ExtraFieldsObject::class
|
2020-04-20 19:58:09 +02:00
|
|
|
];
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2020-04-20 19:58:09 +02:00
|
|
|
private static $many_many_extraFields = [
|
|
|
|
'Clients' => [
|
2016-12-16 05:34:21 +01:00
|
|
|
'Reference' => 'Varchar',
|
|
|
|
'Worth' => 'Money'
|
2020-04-20 19:58:09 +02:00
|
|
|
],
|
|
|
|
'Products' => [
|
2017-06-28 19:23:38 +02:00
|
|
|
'Reference' => 'Varchar',
|
2020-04-20 19:58:09 +02:00
|
|
|
],
|
|
|
|
];
|
2016-10-14 03:30:05 +02:00
|
|
|
}
|