mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
27 lines
618 B
PHP
27 lines
618 B
PHP
<?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';
|
|
|
|
private static $many_many = array(
|
|
'Clients' => ExtraFieldsObject::class
|
|
);
|
|
|
|
private static $belongs_many_many = array(
|
|
'WorksWith' => ExtraFieldsObject::class
|
|
);
|
|
|
|
private static $many_many_extraFields = array(
|
|
'Clients' => array(
|
|
'Reference' => 'Varchar',
|
|
'Worth' => 'Money'
|
|
)
|
|
);
|
|
}
|