forked from silverstripe/silverstripe-graphql
-
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.
ENHANCEMENT Remove item from change sets when it's archived
- Loading branch information
Showing
4 changed files
with
121 additions
and
0 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,46 @@ | ||
<?php | ||
|
||
namespace SilverStripe\Versioned\Tests\VersionedTest; | ||
|
||
use SilverStripe\Dev\TestOnly; | ||
use SilverStripe\ORM\DataObject; | ||
use SilverStripe\ORM\HasManyList; | ||
use SilverStripe\ORM\ManyManyList; | ||
use SilverStripe\Versioned\Versioned; | ||
use SilverStripe\ORM\Hierarchy\Hierarchy; | ||
|
||
/** | ||
* @property string $Name | ||
* @property string $Title | ||
* @property string $Content | ||
* @method ChangeSetTestObject Parent() | ||
* @method HasManyList Children() | ||
* @method ManyManyList Related() | ||
* @mixin Versioned | ||
*/ | ||
class ChangeSetTestObject extends DataObject implements TestOnly | ||
{ | ||
private static $table_name = 'ChangeSetVersionedTest_DataObject'; | ||
|
||
private static $db = [ | ||
"Name" => "Varchar", | ||
'Title' => 'Varchar', | ||
]; | ||
|
||
private static $extensions = [ | ||
Versioned::class, | ||
Hierarchy::class | ||
]; | ||
|
||
private static $has_one = [ | ||
'Parent' => ChangeSetTestObject::class, | ||
]; | ||
|
||
private static $has_many = [ | ||
'Children' => ChangeSetTestObject::class, | ||
]; | ||
|
||
private static $many_many = [ | ||
'Related' => RelatedWithoutversion::class, | ||
]; | ||
} |