silverstripe-framework/tests/php/ORM/ManyManyListTest/IndirectSecondaryExtension.php
Damian Mooyman fba8e2c245 API Remove Object class
API DataObjectSchema::manyManyComponent() return array is now associative array
2017-05-23 13:50:35 +12:00

25 lines
585 B
PHP

<?php
namespace SilverStripe\ORM\Tests\ManyManyListTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataExtension;
use SilverStripe\ORM\ManyManyList;
/**
* An extension that is applied to ManyManyListTest_Secondary that
* implements the other side of the many-many relationship.
*
* @method ManyManyList Primary()
*/
class IndirectSecondaryExtension extends DataExtension implements TestOnly
{
private static $db = array(
'Title' => 'Varchar(255)'
);
private static $belongs_many_many = array(
'Primary' => IndirectPrimary::class
);
}