silverstripe-framework/tests/php/ORM/ManyManyThroughListTest/FallbackLocale.php
Michael Strong 55f95b7bc8 BUGFIX many many through not sorting by join table (#8534)
* BUGFIX many many through not sorting by join table

* #8534 added docs to support many many sorting fix

* #8534 added test cases for many_many default sorting
2018-11-01 14:17:15 +13:00

23 lines
480 B
PHP

<?php
namespace SilverStripe\ORM\Tests\ManyManyThroughListTest;
use SilverStripe\ORM\DataObject;
use SilverStripe\Dev\TestOnly;
class FallbackLocale extends DataObject implements TestOnly
{
private static $db = [
'Sort' => 'Int',
];
private static $has_one = [
'Parent' => Locale::class,
'Locale' => Locale::class,
];
private static $table_name = 'ManyManyThroughTest_FallbackLocale';
private static $default_sort = 'Sort';
}