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

22 lines
513 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\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
{
private static $db = array(
'Title' => 'Varchar(255)'
);
2016-10-14 03:30:05 +02:00
private static $belongs_many_many = array(
'Primary' => IndirectPrimary::class
);
2016-10-14 03:30:05 +02:00
}