silverstripe-framework/tests/php/ORM/ManyManyListTest/ExtraFieldsObject.php

31 lines
736 B
PHP
Raw Normal View History

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
{
private static $table_name = 'ManyManyListTest_ExtraFields';
2016-10-14 03:30:05 +02:00
private static $many_many = array(
2017-06-28 19:23:38 +02:00
'Clients' => ExtraFieldsObject::class,
'Products' => Product::class,
);
2016-10-14 03:30:05 +02:00
private static $belongs_many_many = array(
'WorksWith' => ExtraFieldsObject::class
);
2016-10-14 03:30:05 +02:00
private static $many_many_extraFields = array(
'Clients' => array(
'Reference' => 'Varchar',
'Worth' => 'Money'
2017-06-28 19:23:38 +02:00
),
'Products' => array(
'Reference' => 'Varchar',
),
);
2016-10-14 03:30:05 +02:00
}