forked from symbiote/silverstripe-gridfieldextensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request symbiote#256 from silverstripe-terraformers/featur…
…e/reorder_fix_versioned
- Loading branch information
Showing
6 changed files
with
190 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, | ||
]; | ||
} |