Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX Handle using injected subclasses
Co-authored-by: Will Rossiter <will@fullscreen.io>
- Loading branch information
1 parent
ca0b864
commit c74fa1c
Showing
4 changed files
with
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
|
||
namespace SilverStripe\GraphQL\Tests\Fake\Inheritance; | ||
|
||
use SilverStripe\Dev\TestOnly; | ||
use SilverStripe\ORM\DataList; | ||
use SilverStripe\ORM\DataObject; | ||
|
||
class MyOrig extends DataObject implements TestOnly | ||
{ | ||
private static $db = [ | ||
'MyField' => 'Varchar', | ||
]; | ||
|
||
private static $table_name = 'MyOrig_test'; | ||
} |
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,16 @@ | ||
<?php | ||
|
||
|
||
namespace SilverStripe\GraphQL\Tests\Fake\Inheritance; | ||
|
||
use SilverStripe\Dev\TestOnly; | ||
use SilverStripe\ORM\DataList; | ||
|
||
class MySubclass extends MyOrig implements TestOnly | ||
{ | ||
private static $db = [ | ||
'MySubclassField' => 'Varchar', | ||
]; | ||
|
||
private static $table_name = 'MySubclass_test'; | ||
} |
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