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

25 lines
575 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;
use SilverStripe\ORM\ManyManyList;
2016-10-14 03:30:05 +02:00
/**
* An extension that is applied to ManyManyListTest_Secondary that
* implements the other side of the many-many relationship.
*
* @method ManyManyList Primary()
2016-10-14 03:30:05 +02:00
*/
class IndirectSecondaryExtension extends DataExtension implements TestOnly
{
private static $db = [
'Title' => 'Varchar(255)'
];
2016-10-14 03:30:05 +02:00
private static $belongs_many_many = [
'Primary' => IndirectPrimary::class
];
2016-10-14 03:30:05 +02:00
}