mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
Merge pull request #87 from creative-commoners/pulls/4/graphql4-fix-and-tablenames
FIX GraphQL4 config, add table names to pages
This commit is contained in:
commit
4412afe822
@ -23,36 +23,37 @@ SilverStripe\Control\Director:
|
|||||||
SilverStripe\GraphQL\Schema\Schema:
|
SilverStripe\GraphQL\Schema\Schema:
|
||||||
schemas:
|
schemas:
|
||||||
frameworktest:
|
frameworktest:
|
||||||
modelConfig:
|
config:
|
||||||
type_mapping:
|
modelConfig:
|
||||||
SilverStripe\FrameworkTest\Model\Company: Company
|
type_mapping:
|
||||||
SilverStripe\FrameworkTest\Model\Employee: Employee
|
SilverStripe\FrameworkTest\Model\Company: Company
|
||||||
models:
|
SilverStripe\FrameworkTest\Model\Employee: Employee
|
||||||
SilverStripe\FrameworkTest\Model\Company:
|
models:
|
||||||
fields:
|
SilverStripe\FrameworkTest\Model\Company:
|
||||||
ID: true
|
fields:
|
||||||
Name: true
|
ID: true
|
||||||
Category: true
|
Name: true
|
||||||
Revenue: true
|
Category: true
|
||||||
CEO: true
|
Revenue: true
|
||||||
Employees: true
|
CEO: true
|
||||||
PastEmployees: true
|
Employees: true
|
||||||
operations:
|
PastEmployees: true
|
||||||
read: true
|
operations:
|
||||||
update: true
|
read: true
|
||||||
create: true
|
update: true
|
||||||
delete: true
|
create: true
|
||||||
readOne: true
|
delete: true
|
||||||
SilverStripe\FrameworkTest\Model\Employee:
|
readOne: true
|
||||||
fields:
|
SilverStripe\FrameworkTest\Model\Employee:
|
||||||
ID: true
|
fields:
|
||||||
Name: true
|
ID: true
|
||||||
Biography: true
|
Name: true
|
||||||
DateOfBirth: true
|
Biography: true
|
||||||
Category: true
|
DateOfBirth: true
|
||||||
operations:
|
Category: true
|
||||||
read: true
|
operations:
|
||||||
update: true
|
read: true
|
||||||
create: true
|
update: true
|
||||||
delete: true
|
create: true
|
||||||
readOne: true
|
delete: true
|
||||||
|
readOne: true
|
||||||
|
@ -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)',
|
||||||
|
@ -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([
|
||||||
|
Loading…
Reference in New Issue
Block a user