-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrected a case when sort column is located in a table that belongs …
…to ancestor class of the item.
- Loading branch information
1 parent
b93a8f2
commit 6b47b6d
Showing
6 changed files
with
193 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Symbiote\GridFieldExtensions\Tests\Stub; | ||
|
||
use SilverStripe\Dev\TestOnly; | ||
use SilverStripe\ORM\DataObject; | ||
use SilverStripe\Versioned\Versioned; | ||
|
||
/** | ||
* Class StubOrderedVersioned | ||
* @package Symbiote\GridFieldExtensions\Tests\Stub | ||
*/ | ||
class StubOrderedVersioned extends DataObject implements TestOnly | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private static $table_name = 'StubOrderedVersioned'; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
private static $extensions = [ | ||
Versioned::class, | ||
]; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
private static $db = [ | ||
'Sort' => 'Int', | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Symbiote\GridFieldExtensions\Tests\Stub; | ||
|
||
use SilverStripe\Dev\TestOnly; | ||
use SilverStripe\ORM\DataObject; | ||
use SilverStripe\Versioned\Versioned; | ||
|
||
/** | ||
* Class StubOrderedVersioned | ||
* @package Symbiote\GridFieldExtensions\Tests\Stub | ||
*/ | ||
class StubSubclassOrderedVersioned extends StubOrderedVersioned | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private static $table_name = 'StubSubclassOrderedVersioned'; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
private static $db = [ | ||
'ExtraField' => 'Int', | ||
]; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
private static $has_one = [ | ||
'Parent' => StubParent::class, | ||
]; | ||
} |