2016-10-14 03:30:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\ORM\Tests\ManyManyListTest;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\ORM\DataExtension;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An extension that is applied to ManyManyListTest_Secondary that
|
|
|
|
* implements the other side of the many-many relationship.
|
|
|
|
*/
|
|
|
|
class IndirectSecondaryExtension extends DataExtension implements TestOnly
|
|
|
|
{
|
2016-12-16 05:34:21 +01:00
|
|
|
private static $db = array(
|
|
|
|
'Title' => 'Varchar(255)'
|
|
|
|
);
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
private static $belongs_many_many = array(
|
|
|
|
'Primary' => IndirectPrimary::class
|
|
|
|
);
|
2016-10-14 03:30:05 +02:00
|
|
|
}
|