FIX GraphQL4 config, add table names to pages

This commit is contained in:
Steve Boyd 2021-02-25 23:51:25 +13:00
parent 5dd2c795d2
commit 3c83a61988
3 changed files with 38 additions and 33 deletions

View File

@ -23,6 +23,7 @@ SilverStripe\Control\Director:
SilverStripe\GraphQL\Schema\Schema: SilverStripe\GraphQL\Schema\Schema:
schemas: schemas:
frameworktest: frameworktest:
config:
modelConfig: modelConfig:
type_mapping: type_mapping:
SilverStripe\FrameworkTest\Model\Company: Company SilverStripe\FrameworkTest\Model\Company: Company

View File

@ -15,6 +15,8 @@ if (!class_exists(Page::class)) {
*/ */
class MultiTabPage extends Page class MultiTabPage extends Page
{ {
private static $table_name = 'MultiTabPage';
private static $db = [ private static $db = [
'SecondTabFirstField' => 'Varchar(50)', 'SecondTabFirstField' => 'Varchar(50)',
'ThirdTabFirstField' => 'Varchar(50)', 'ThirdTabFirstField' => 'Varchar(50)',

View File

@ -14,6 +14,8 @@ if (!class_exists(Page::class)) {
*/ */
class SingleTabPage extends Page class SingleTabPage extends Page
{ {
private static $table_name = 'SingleTabPage';
public function getCMSValidator() public function getCMSValidator()
{ {
return new RequiredFields([ return new RequiredFields([